Django signals for beginners | How to use signals in Django

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 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: th-cam.com/video/ozr6NEomLQw/w-d-xo.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! 😊🙌

  • @martinsalamanco6595
    @martinsalamanco6595 4 ปีที่แล้ว +6

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

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

      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:)

  • @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

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

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

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

      Thank you ;)))

  • @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: th-cam.com/video/yizDiX0SOm4/w-d-xo.html

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

      @@Pyplane 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!

  • @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!

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

    awesome video man, thanks!

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

    Excellent tutorial of Django Signal. 👌

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

      Thank you!

  • @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

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

    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.

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

    thats the best signal video I've seen

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

      Thank you Reza!

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

    thank you so much Luke

  • @yashpatel-ts4ti
    @yashpatel-ts4ti 2 ปีที่แล้ว

    Thank you so much for this video

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

    Perfect tutorial!! Congrats

  • @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 ;)

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

    Thanks, It was super clear..!!

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

    Admin work in part one was great

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

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

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

      Thanks for watching!

  • @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!

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

    thank you sir !

  • @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

  • @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?

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

    Thank you very much for this tutorial :)

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

      Thanks for watching! :)

  • @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

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

    awesome

  • @AnkurChakraborty-sp5kc
    @AnkurChakraborty-sp5kc 4 ปีที่แล้ว

    You are awesome .

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

      Thank you! :)

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

    Thanks Boss

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

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

  • @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.

  • @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: th-cam.com/video/d75qfL-4RLg/w-d-xo.html

  • @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

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

    how to do that in views at templates?

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

    🔥🔥🔥🔥🔥🔥🔥

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

      :)

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

    Very helpful 😍

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

      Thank you Mahmud. Very happy it helped :)

  • @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

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

    loved it....

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

      thank you!

  • @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