Django signals for beginners | How to use signals in Django

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • Tutorial on django signals for beginners
    This video is an introduction to most commonly used signals in Django that every beginner should know. Learn how to use basic signals in Django : post_save, pre_save, m2m_changed, pre_delete
    in an introduction, project based tutorial on Django signals. After watching this video, you'll understand how django signals work and you will be able to include them in your own projects!
    I haven't found online a tutorial which would cover in one short video Django signals - so this is my attempt to help beginners get started on this.
    Recorded with a fever, but hopefully still understandable enough :)
    🔥 Join the facebook group:
    / djangoninjas 🚀
    🔥 Follow pyplane on:
    ➜ instagram: / pyplane_code
    ➜ pinterest: / pyplane
    ➜ facebook: / pyplane
    🔥 More on python and django:
    ➜ blog.pyplane.com
    Join the facebook group:
    / djangoninjas
    Links to the docs:
    ➜ docs.djangopro...
    ➜ docs.djangopro...
    #django #signals #pre_save #post_save #m2m_changed #pre_delete
    django, signals, signals in django, django signals, django signals for beginners, post_save, pre_save, m2m_changed,pre_delete, learn django signals,django signals tutorial, django signals post_save, learn django,django signals pre_save,django signals explained, django signals example, Django signal post save

Комментарии • 90

  • @Pyplane
    @Pyplane  4 года назад +10

    Hi Guys! If you're new to django make sure to checkout free django social network course available on my channel: ruclips.net/video/ozr6NEomLQw/видео.html

  • @rooneymara8061
    @rooneymara8061 4 года назад +14

    Here before 1k subscribers. Don't forget the OGs when you blow up because this is some quality content and deserves to blow up. Cheers, mate.

    • @Pyplane
      @Pyplane  4 года назад +1

      Thank you! :) For me 100 subscribers was a lot. 1000 is like a dream :) just can't imagine it yet that someday it might be 10 000. Thanks once again!

    • @naumank604
      @naumank604 3 года назад

      @@Pyplane and now its 17.6K :), Wish you 100K next year :)

  • @muhammad_abir
    @muhammad_abir 2 года назад +1

    thanks bro..... after watch a lot of tutorials on youtube, finally I actually got a proper idea about signals

  • @dmytromykytiuk1244
    @dmytromykytiuk1244 2 года назад +2

    thank you so much!
    thanks to you I have written my first signals and they work properly
    your explanations are very clear

  • @Geekyology
    @Geekyology 3 года назад +2

    Highly underrated channel. Your content is just amazing. Keep it up

  • @mohammedmisran113
    @mohammedmisran113 3 года назад +3

    Awesome job in explaining how django signals work!! I was stuck in a project too trying to implement signals. Your video gave me a clear idea on how they work now... thanks a lot

  • @et4493
    @et4493 Год назад +1

    by far my favourite channel to learn Django. Django is pretty complex IMO, there's a lot of referencing back and forth but you do a great job of pointing it out and guiding us through it.

    • @Pyplane
      @Pyplane  Год назад

      Thank you! 😊🙌

  • @samuelagbesi6103
    @samuelagbesi6103 4 года назад +2

    Thanks for sharing this knowledge and providing more insight into signals. This will help me to improve on a project I am working on. Very helpful. :)

    • @Pyplane
      @Pyplane  4 года назад

      Thanks for watching and good luck on the project ! :)

  • @yukselbastan4687
    @yukselbastan4687 4 года назад +2

    yet another great tutorial from the best of the best , thanks Lucas.

    • @Pyplane
      @Pyplane  4 года назад +1

      Definitely don't feel the best of the best, but thank you so much for your support! :))

    • @yukselbastan4687
      @yukselbastan4687 4 года назад

      @@Pyplane you style of teaching is very good, as i mentioned before, i watched sooo many tutorials, your tutorials are better, and the great think of you is, you are answering and helping us. THANKS. BUT this doesnt mean that you can let us wait for PART 11 and the other Social PARTS :D

    • @Pyplane
      @Pyplane  4 года назад +1

      @@yukselbastan4687 Thanks :) I had a nice laugh. Tomorrow 11th part should be ready:)

  • @martinsalamanco6595
    @martinsalamanco6595 4 года назад +6

    Damn, signals aren't that easy. Nice explanation!

    • @Pyplane
      @Pyplane  4 года назад

      thank you ;))

  • @raymondmichael4987
    @raymondmichael4987 4 года назад +1

    Thanks I'll check this definitely ;
    Wishes you good health.
    Greetings from Tanzania 🇹🇿

    • @Pyplane
      @Pyplane  4 года назад

      Thank you ;)))

  • @jhkz4313
    @jhkz4313 3 года назад

    Thanks for the video, I faced in a situation, needing django signals. it gave me a pretty good grasp about it.

    • @Pyplane
      @Pyplane  3 года назад +1

      Glad my video helped you out:) Cheers!

  • @hadytaha2344
    @hadytaha2344 3 года назад

    You are a very great person and your work is wonderful and your explanation is simple. I would like to donate to you, but I am not working right now. I am a student but for my first job I will donate to you. you are a wonderful person. keep going, brother.
    You are my only source for learning Django Thank you very much

  • @deusdev7111
    @deusdev7111 Год назад

    Many thanks for the tutorial ! Super helpful

    • @Pyplane
      @Pyplane  Год назад +1

      Glad you liked it 🙌

    • @deusdev7111
      @deusdev7111 Год назад

      @@Pyplane Now that I finished with your tutorial I will try to make it so that users know which quiz they already made, showing their previous results, letting them choose if they want to take it again and restart the score, etc. Wish me luck! :D

  • @aashayamballi
    @aashayamballi 4 года назад +1

    This is a great channel for django tutorials.. thanks for all your efforts.. I have one request, could you please make a tutorial on django channels with few real world examples like updating the progress bar in real time, real time notification counter etc.
    Again thank you so much for all your efforts! Much appreciated 😊

    • @Pyplane
      @Pyplane  4 года назад +1

      Hi Aashay! Thanks for the kind words. Django channels are on my list, but there are still a few videos I want to publish before. In the meantime you can check out Daniel Feldroy's video on Django channels. I haven't seen it, but Daniel is one of the leading experts in django. Link: ruclips.net/video/yizDiX0SOm4/видео.html

    • @aashayamballi
      @aashayamballi 4 года назад +1

      @@Pyplane Thank you 😊

  • @radomirmijovic2605
    @radomirmijovic2605 2 года назад

    awesome video man, thanks!

  • @muhammadyasir8880
    @muhammadyasir8880 3 года назад +1

    Excellent tutorial of Django Signal. 👌

  • @yashlanjewar9971
    @yashlanjewar9971 4 года назад +1

    Actually I want add friend, remove functionality. And your videos was great you are god.

    • @Pyplane
      @Pyplane  4 года назад +1

      Thx. We will do this functionality in part 12, maybe 13 of the social network project ;)

  • @delllatitude299
    @delllatitude299 3 года назад

    as you going, you will get 500k+ subscriber in 2021. You have unique and up-to date content. Thanks. following your every video and always think i will get something new from your video even if i know the topic. I got

    • @Pyplane
      @Pyplane  3 года назад

      thank you ! it's good to have you here on the channel. I appreciate each comment and the support. thank you one more time!

  • @ismailprasetyo197
    @ismailprasetyo197 3 года назад

    thank you so much Luke

  • @rezasadeghi2520
    @rezasadeghi2520 3 года назад

    thats the best signal video I've seen

    • @Pyplane
      @Pyplane  3 года назад

      Thank you Reza!

  • @GiantsOnTheHorizon
    @GiantsOnTheHorizon 4 года назад

    I may have read this wrong but, in the docs it seems like as long as you use the full "dotted" path in your INSTALLED_APPS, it appears that you don't need to use the default_app_config in your __init__.py file. Anyway, I love your channel! Thanks for all of the great content.

  • @tshiamomotshabi9862
    @tshiamomotshabi9862 3 года назад

    Very insightful tut...

    • @Pyplane
      @Pyplane  3 года назад

      Thank you! :)

    • @tshiamomotshabi9862
      @tshiamomotshabi9862 3 года назад

      @@Pyplane Over the weekend I did a few exercises and came across something interesting. I tried to run my app concurrently to see if the signal would crash or handle the process. However it created 200 instances from 3 concurrent model creations. Why would that be?

  • @yashpatel-ts4ti
    @yashpatel-ts4ti 2 года назад

    Thank you so much for this video

  • @mrescape100
    @mrescape100 4 года назад

    Perfect tutorial!! Congrats

  • @aaklii
    @aaklii 3 года назад

    Thanks, It was super clear..!!

  • @vinothv1720
    @vinothv1720 3 года назад

    Thank you sir! Django signals is really useful and awesome...

    • @Pyplane
      @Pyplane  3 года назад

      Thanks for watching!

  • @shaiksadik2541
    @shaiksadik2541 4 года назад

    Love from India ur channel is gonna 💣💥💣💥💣💥boom

    • @Pyplane
      @Pyplane  4 года назад +1

      Thank you Shaik! :)))

    • @shaiksadik2541
      @shaiksadik2541 4 года назад

      @@Pyplane I have one doubt, plz give me say about django, is django used in data science or AI and many others....... I completed python and basics of django! I hope u can go in detail. Thank u

    • @Pyplane
      @Pyplane  4 года назад +1

      @@shaiksadik2541 I can tell you from my perspective - I use data science in project for my clients and with one of the customer we are planning within 2 years to create an ANN for prediction purposes. But don't start too many things at once. If you know the basics of python and django maybe it's time to learn some intermediate stuff ?

    • @shaiksadik2541
      @shaiksadik2541 4 года назад

      @@Pyplane yes ur right! So u want me to continue until I master python and django........?

    • @Pyplane
      @Pyplane  4 года назад

      @@shaiksadik2541 until you feel comfortable with it

  • @codedjango
    @codedjango 4 года назад

    Thank you very much for this tutorial :)

    • @Pyplane
      @Pyplane  4 года назад +1

      Thanks for watching! :)

  • @chetty1212
    @chetty1212 2 года назад

    thank you sir !

  • @antonioinochi9170
    @antonioinochi9170 2 года назад

    Always great video, I noted that sometimes the signals trigger fault, is there a way to make it asinc to avoid any sort of fault? Thanks

  • @yashlanjewar9971
    @yashlanjewar9971 4 года назад

    Admin work in part one was great

  • @RuslanSkiraUkraine
    @RuslanSkiraUkraine 3 года назад

    Would you shoot the video about how to make the custom signal and how to use the list of signals in @receiver([], sender=..)?
    And could you please explain the def ready(). After documentation more questions than answers).
    Thank you for your work!

  • @blackpetergriffin179
    @blackpetergriffin179 3 года назад

    hey please tell us how to use Django signals with foreign keys related models two models chained in foreign key on model b when he select a in foreign key choices in a model it update the section and it will say b choses you.

  • @oleksandrdiadiushenko4971
    @oleksandrdiadiushenko4971 2 года назад

    Thank you for a great tutorial. Give advice please. I need to generate qrcode using an ID of saved element. After creating the ID = None. This can only be done after re-saving. Do you have simple solution?

    • @Pyplane
      @Pyplane  2 года назад +1

      Hi, I have a tutorial on qrcodes here on the channel and on instagram - pyplane_code

  • @AnkurChakraborty-sp5kc
    @AnkurChakraborty-sp5kc 4 года назад

    You are awesome .

    • @Pyplane
      @Pyplane  4 года назад

      Thank you! :)

  • @samsonharuna2071
    @samsonharuna2071 2 года назад

    Thanks Boss

  • @chowadagod
    @chowadagod 4 года назад

    Thank you so so very much for test ..please could you do a video series on how to carry out test cases on your Django app using unittest or pytest

    • @Pyplane
      @Pyplane  4 года назад

      Hi Chowa. Thanks for watching the video. Sure, I’m putting pytest on my list. In the meantime you can checkout Daniel Feldroy’s video on this: ruclips.net/video/d75qfL-4RLg/видео.html

  • @rangabharath4253
    @rangabharath4253 4 года назад

    awesome

  • @komilyaxshilikov5729
    @komilyaxshilikov5729 4 года назад

    Thank you , your tutorial is very useful and i have a question obj = Buyer.objects.get(user=instance.buyer.user) i can't understand this kind of combination meaning , how do i try to understand such as relationships ? thank you .

    • @Pyplane
      @Pyplane  4 года назад

      Hi. Instance is an instance of the sender class. We are just grabbing the object by the user. Please watch again from minute 27. Cheers

  • @krishnanduranjnroy2321
    @krishnanduranjnroy2321 2 года назад

    I've facing some issue while creating my models using signals. can you help me?? PLEASE...

  • @shashankpandey1966
    @shashankpandey1966 3 года назад

    🔥🔥🔥🔥🔥🔥🔥

  • @kaushalendrapandey2662
    @kaushalendrapandey2662 4 года назад

    loved it....

  • @mahmudsajib8648
    @mahmudsajib8648 4 года назад

    Very helpful 😍

    • @Pyplane
      @Pyplane  4 года назад

      Thank you Mahmud. Very happy it helped :)

  • @diescatric4559
    @diescatric4559 2 года назад

    how to do that in views at templates?

  • @yashlanjewar9971
    @yashlanjewar9971 4 года назад

    Hello can you please tell me when will the second part of friends request tutorial come

    • @Pyplane
      @Pyplane  4 года назад

      Hi Yash. Thanks for the comment. Are you referring to video how to add to friends in django? If so, I decided to upload the entire social network project where we do those things and more

    • @yashlanjewar9971
      @yashlanjewar9971 4 года назад

      Sir is it in django series of 11 tutorials

    • @yashlanjewar9971
      @yashlanjewar9971 4 года назад

      Sir can you make separate series on it

    • @Pyplane
      @Pyplane  4 года назад

      @@yashlanjewar9971 Yes, there will be more then 11 parts - it's quite a big project

  • @yashlanjewar9971
    @yashlanjewar9971 4 года назад

    Sir when will django series part 12 come.

    • @Pyplane
      @Pyplane  4 года назад +1

      Hi Yash. Hope you're doing well. The answer to your question is tomorrow :) Today I'm going to upload a additional tutorial to a social net work project on following users

  • @yashlanjewar9971
    @yashlanjewar9971 4 года назад

    Sir have you uploaded this project on github

    • @Pyplane
      @Pyplane  4 года назад

      No, but I'll upload to github the main tutorials here on youtube in the upcoming days