Learn the Basics of Django Signals

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • In this tutorial we cover the basics and pretty much everything you need to know about Django signals.
    justdjango.com
    ☝ Get exclusive courses & become a better Django developer
    ✌️ Stay in touch
    Facebook: / justdjangocode
    Instagram: / justdjangocode
    Twitter: / justdjangocode
    Email: admin@justdjango.com
    Thank you for watching and don't forget to subscribe :)

ความคิดเห็น • 77

  • @continental_drift
    @continental_drift 4 ปีที่แล้ว +2

    Clear and concise. So many Django tutorials add fluff and muddy the waters when describing what to do when using Django.
    Arthur C. Clarke: "Any sufficiently advanced technology is indistinguishable from magic."
    This is simple and to the point, thanks.

  • @Gonfalon88
    @Gonfalon88 4 ปีที่แล้ว +1

    My god I had been searching on how to send an update to slack when someone posts a message. I put an api call under the model's class and could not figure out how to only make it call when the model was saved. It was actually making api calls every time I ran manage.py migrate lol.
    After two days of messing around in my code, placing the api call in defs and out of defs, in models and in views, etc etc.. this tutorial actually fixed it. Thank you so much!

  • @muhsinkhalif3621
    @muhsinkhalif3621 5 ปีที่แล้ว +5

    Wow! thanks for the explaination other youtubers just glance over this signalling part(i think they just memorized it and not fully understand the underlying concept of send,receive signalling).

  • @FernandoPosserPinheiro
    @FernandoPosserPinheiro 5 ปีที่แล้ว +7

    Best django signals tutorial i ever see

  • @onelinkonelink1677
    @onelinkonelink1677 2 ปีที่แล้ว

    THANK YOU VERY VERY MUCH!!! .
    this is the best tutorial about Signals till now . the way how you go through documentation
    and then do an example is really really good. now it's much easier for me to read the docs next time :))

  • @MrValVet
    @MrValVet ปีที่แล้ว

    Hey JD, thank you for your awesome Django tutorials. For me, these are by far the best on YT.

  • @topsome6025
    @topsome6025 4 ปีที่แล้ว +1

    Best tutorial for signals so far! Excellent work sir, keep it up.

  • @shreyasambre295
    @shreyasambre295 3 ปีที่แล้ว

    Nice explanation. I read the documentation but it was bouncers for me u cleared me the concept

  • @avanishgupta5040
    @avanishgupta5040 5 ปีที่แล้ว +1

    I am really thankful to you sir for this video which covers all the basic concepts of signals .

  • @maahad767
    @maahad767 3 ปีที่แล้ว

    I was struggling with this, and you made this easy for me. Thanks man.

  • @SanjayKumar_optimist
    @SanjayKumar_optimist 2 ปีที่แล้ว

    Very much helpful, good explanation.

  • @Shaunmcdonogh-shaunsurfing
    @Shaunmcdonogh-shaunsurfing 4 ปีที่แล้ว

    It’s GREAT how you explain the code. Grateful brother.

  • @codeevangelist
    @codeevangelist 4 ปีที่แล้ว +2

    Thank you for the tutorial. would like to create another one for us about how to send user notifications with Django signals? of if it is possible how to use signals with rest framework and Django channels

  • @jonl316
    @jonl316 2 ปีที่แล้ว

    Such a great tutorial! Love what you are doing there and thanks so much.

  • @ameerhbaig
    @ameerhbaig 4 ปีที่แล้ว

    Thanks a lot. You really helped me understand the basics of signals. They were certainly intimidating before this.

  • @theadrix92
    @theadrix92 3 ปีที่แล้ว

    You made it so easy. Thank you

  • @thomasrackow8159
    @thomasrackow8159 5 ปีที่แล้ว +1

    Again a great Django tutorial video. Thanks a lot.

  • @eesakamaldien1917
    @eesakamaldien1917 2 ปีที่แล้ว

    Thank you so much for this

  • @codeproduct9904
    @codeproduct9904 3 ปีที่แล้ว

    Thanks for your great effort, Matthew.

  • @oyatilloismoilov5540
    @oyatilloismoilov5540 3 ปีที่แล้ว

    Thank you so much bro✊

  • @10yearsago84
    @10yearsago84 3 ปีที่แล้ว

    Amazing Explanation. Really liked the video.

  • @FahmiEshaq
    @FahmiEshaq 4 ปีที่แล้ว +1

    Well explained. Thank you

  • @chetty1212
    @chetty1212 2 ปีที่แล้ว

    great vide on signals thank you

  • @xyzmoral262
    @xyzmoral262 5 ปีที่แล้ว

    Thanks a lot...You make it more easy to understand.

  • @sumit180288
    @sumit180288 3 ปีที่แล้ว +1

    Which is the color theme in vs code you use ?

  • @MVTN
    @MVTN 4 ปีที่แล้ว

    Thanks for the video, it really helped me out!

  • @peterrusznak6165
    @peterrusznak6165 2 ปีที่แล้ว

    yeah, great stuff. subscription earned.

  • @michelkant
    @michelkant 5 ปีที่แล้ว

    Big like for the very clear explanation!

  • @Kapone2596
    @Kapone2596 3 ปีที่แล้ว

    Great tutorial.

  • @amitbaderia4194
    @amitbaderia4194 4 ปีที่แล้ว

    Very well explained. Thanks a lot !

  • @Unknown-ck7fi
    @Unknown-ck7fi 7 หลายเดือนก่อน

    to the point , thanks

  • @aaryacollections2211
    @aaryacollections2211 4 ปีที่แล้ว

    This video was very helpful.

  • @mohammadsamir2713
    @mohammadsamir2713 5 ปีที่แล้ว +1

    Thanks a lot for your efforts

  • @panagiotisgoulas8539
    @panagiotisgoulas8539 3 ปีที่แล้ว

    Thank you was a very confusing topic imo that you explained thoroughly.

  • @spreadhysteria3650
    @spreadhysteria3650 3 ปีที่แล้ว

    Perfect, I am planning to make a log file of users activity in a .txt file.

  • @geniusxbyofejiroagbaduta8665
    @geniusxbyofejiroagbaduta8665 7 หลายเดือนก่อน

    Thank you sir

  • @mohamedabdelmoneim5721
    @mohamedabdelmoneim5721 3 ปีที่แล้ว

    thank you, This is awesome

  • @dannyhd8301
    @dannyhd8301 2 ปีที่แล้ว

    absolutely gr8

  • @anisdhouieb9918
    @anisdhouieb9918 4 ปีที่แล้ว

    Hi, thank you for this video, which vscode extension do you use to get autocompletion with Django ???

  • @maxitorres7
    @maxitorres7 4 ปีที่แล้ว

    Thanks a lot man! realy usefull

  • @timothybloxsome5802
    @timothybloxsome5802 5 ปีที่แล้ว

    This is gold!

  • @tanimsk
    @tanimsk 3 ปีที่แล้ว

    thanks!!!!

  • @NMD137307
    @NMD137307 2 ปีที่แล้ว

    16:43 custom signals

  • @pratiksharma6522
    @pratiksharma6522 4 ปีที่แล้ว

    which extensions of python you are using for django in vscode ?

  • @Brun69M
    @Brun69M 4 ปีที่แล้ว

    why is the Post the sender of request_counter_signal ?

  • @yoga_with_atharva
    @yoga_with_atharva 4 ปีที่แล้ว

    nice explanation👌

  • @letccc
    @letccc 5 ปีที่แล้ว

    Which VScode extension you are using for Django intellisense ?

  • @nsulanov312
    @nsulanov312 5 ปีที่แล้ว

    Great 👍🏼 tutorial

  • @AxmedShiimax
    @AxmedShiimax 4 ปีที่แล้ว

    Something still in my head, is it necessary to use signals while I want to create a user with profile or can I use after user creation form is a valid and saved then save with its profile?
    Ur teaching style is awesome.
    Thank you

    • @tochimclaren
      @tochimclaren 4 ปีที่แล้ว

      The best practice will be to set a lot of the profile forms to blank listen to User model signal, create the user object and redirect to user Profile form to update it with information if that's what you are asking about.

  • @shashanksharmadon4295
    @shashanksharmadon4295 4 ปีที่แล้ว

    Awesome...................

  • @alimurtuza347
    @alimurtuza347 4 ปีที่แล้ว

    i am learning from different source in that it make another signals file and define the signal there, while i am doing the same the content you provided in an another file signals.py but cannot connect my signals means it doesnot notify me when the request is finished

  • @alimurtuza347
    @alimurtuza347 4 ปีที่แล้ว

    it is bit confusion that we call that signal before the request is done

  • @abdelrhmanahmed1378
    @abdelrhmanahmed1378 3 ปีที่แล้ว

    now function are called when ever save() called , so if i create new user then save is called then i will get a signal and my logic will get executed, when i update user then also save() get called ,then i also get a signal or not ?!!

  • @defidelity
    @defidelity 3 ปีที่แล้ว

    Ykb 👍 thanks

  • @mr2mato
    @mr2mato 5 ปีที่แล้ว +1

    We only can use django signals in models.py, or we can use it in view.py too?

    • @nomanabid7113
      @nomanabid7113 5 ปีที่แล้ว +2

      you can separatly make signals.py where models and views exist. put the functionality there in signals.py. and do the necessary importing stuff like importing POST model from models.py and doing some functionality in signal.py

  • @rathnaveljn423
    @rathnaveljn423 4 ปีที่แล้ว

    HOW TO perform some action when a dropdown menu is changed its item in DJANGO?

  • @Zzzzzzzzzzzzzzzzzzzzr
    @Zzzzzzzzzzzzzzzzzzzzr 5 ปีที่แล้ว

    can signals be used on the frontend to instead send the message to the frontend instead of the terminal? Thanks

  • @Nadeemkhan-fs2ys
    @Nadeemkhan-fs2ys 5 ปีที่แล้ว +1

    Great

  • @mysteriousr7197
    @mysteriousr7197 3 ปีที่แล้ว

    In my project i need something like that..if i save "A" model. Then "A" models imagefield will be automatically added to the "B" models imagefield..can i do it using signal?

    • @maahad767
      @maahad767 3 ปีที่แล้ว

      Yes. use something like this => "AnotherModel.object.imagefield = instance.imagefield"

  • @lowkeygaming4716
    @lowkeygaming4716 5 ปีที่แล้ว

    Hi. Do you have an idea why I'm getting an error with AUTH_USER_MODEL declaration when I register the signals module that I made in the AppConfig? It says that the model that I set is not properly registered?

    • @nomanabid7113
      @nomanabid7113 5 ปีที่แล้ว

      may be first create a super user

  • @Didneodl
    @Didneodl 5 ปีที่แล้ว

    Thank you for the great tutorial! Do you have any plans to make a tutorial about server side rendering with Django and React in the future? As ssr is required for websites focusing on SEO, I think it would be pretty much demanding!

    • @mattfreire
      @mattfreire  5 ปีที่แล้ว +2

      +Jaehong Park Thanks. Yes we do plan on making a tutorial on it in the coming weeks

  • @davidmurphy563
    @davidmurphy563 2 ปีที่แล้ว

    I wonder if anyone else here has experience with the Godot games engine which has a practically identical signals system.

  • @shahzadisairaawan5079
    @shahzadisairaawan5079 4 ปีที่แล้ว

    sir, can you please turn up your volume. all of your videos are very low in sound

  • @pariszarka7959
    @pariszarka7959 5 ปีที่แล้ว

    i want to use signals to send an email to the user everytime a user is registerd

  • @shubhamnaik4205
    @shubhamnaik4205 4 ปีที่แล้ว

    Sir, How to stop the "RecursionError" in post_save django signals ? I am calling the post_save signal after updating the post and changing the slug associated with the Post

    • @chakradharpalaparthi4691
      @chakradharpalaparthi4691 4 ปีที่แล้ว

      Add the slug using pre_save and not post_save.
      Because updating a Post in post_save will re-trigger the same receiver.

  • @shaheerzaman620
    @shaheerzaman620 5 ปีที่แล้ว +1

    Good Video. The audio is too low in all your videos. Please make it louder.Thanks.

  • @aayushdadhich1822
    @aayushdadhich1822 4 ปีที่แล้ว

    as simple as that.

  • @sandrynin
    @sandrynin 5 ปีที่แล้ว

    бесполезный копипаст из документации