Introduction to Django Signals | Django (3.0) Crash Course Tutorials (pt 18)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ส.ค. 2024
  • Check out my Complete Django course! dub.sh/NvGboTI
    Introduction to django signals. Starting with model signals we will use the post_save method to create a user profile anytime the user save method is triggered.
    Follow me on Twitter: / dennisivy11
    LinkedIn: / dennis-ivanov
    Source Code & Live Demo: dennis-sourcec...
    Signals documentation: docs.djangopro...

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

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

    Don't forget to check out my Complete Django course! dub.sh/NvGboTI

  • @rooneymara8061
    @rooneymara8061 4 ปีที่แล้ว +21

    I've spent hours watching videos on signals to no avail. Dennis comes in and explains it in frickin' 13 minutes.

  • @riteksaxena2317
    @riteksaxena2317 4 ปีที่แล้ว +43

    this is best channel that I found on youtube for django , I have never learned django so deeply . Others just teach how to write the code . I promise dennis this channel will grow by leaps and bounds . I am now literely addicted to watching the videos on this channel and reached till this video Thanku vry much

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

    I like that you talk meaningfully fast enough to make it impossible for me to listen at 2X speed.

  • @BensonIbe
    @BensonIbe 10 หลายเดือนก่อน

    the best django crash course on TH-cam.

  • @georgewest7068
    @georgewest7068 2 ปีที่แล้ว +1

    Денис, привет. Очень помог разобраться с этими сигналами!

  • @MarcosSilva-xj3os
    @MarcosSilva-xj3os 4 ปีที่แล้ว +1

    As far as I go deep within Dennis´ lessons, the more I learn. Haven´t ever found a so clear teacher about Django during my time of research in the net. Thanks a bunch man.

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

    Really superb video with simple and understandable instructions. Previously, I was scared by another other tutorial video that I was unable to comprehend the simple concept. Great Work.

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

    Thanks a lot. My signals were not working as I had installed my app using the app name only. But when I used the config file as you say the signal worked perfectly.

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

      Yea that one tricked me for a while :)

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

      Will this solution work when you go live as well?

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

    Great tutorial. The Django documentation was a bit vague, especially with tying in the signals within the ready() method. This got me up and running.

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

    YOU ARE AWESOMEEE, YOU ARE MY HERO OF THE MONTH :)

  • @tekalignabdisa3219
    @tekalignabdisa3219 8 หลายเดือนก่อน

    great django content. dennis love you

  • @DineshKc-programming
    @DineshKc-programming 4 ปีที่แล้ว +9

    Please make video on Generic Foreignkey in Django

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว +11

      Interesting. This is a topic I haven't looked into but its on my list now. I'll do some research and let you know. Thanks for the recommendation Dinesh :)

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

    Wow...this video made my night. You are a hero💯

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

    Your Videos give best explaination, Please make a clear cut series, in signals, celery and Django Channels for real time communication and their intergration in complex projects. It's a big request

  • @user-jt5mc2kr4m
    @user-jt5mc2kr4m ปีที่แล้ว

    Great explanation, Dennis. Thanks!

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

    Introduction
    Adding an image file to user profile
    Rendering Image in each account setting page
    Part 1: Manually add an image to the database
    0:42 Adding an image through admin dashboard
    4:34 Configuring media url
    Part 2: Give user the ability to make update themself, submit the form directly from the user page
    8:20 Customise user account settings page
    10:08 Rendering user profile information
    13:10 Handling submission
    14:33 Create a default user picture

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

      haha wrong video... maybe it was the last one about the images...

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

    Tons of thanks you made my day

  • @zamanEhsani
    @zamanEhsani 3 ปีที่แล้ว +2

    thanks for the tips on signals. my signals was not working and i was really worried. helped alot.

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

    you just murdered my 3 days old bug, thank you man

  • @95aldous
    @95aldous 4 ปีที่แล้ว

    feels like a java spring annotation when i use this. Good job dennis! keep up the good work

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

    This is the best free code, ever!

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

    Awesome video, really simple explanation, I wanted to know if a signal can be triggered only if a specific value in a row has been updated, if so, how would one go about doing that.

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

    thanks Dennis, this video helps me a lot!

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

    as always ,thanks

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

    Awesome, many thanks.

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

    Thank you!!

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

    Excellent course
    22/07/2020

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

    I love you!!!!

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

    thanks

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

    Thank you very much.

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

    Nice one sir

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

    NOT NULL constraint failed: lms_studentdata.student_class_id
    I am facing this error can anyone explain

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

    you re awesome

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

    let's go ahead, let's go ahead, let's go ahead...

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

    For some reasons, sender is not being accessed by pylance and the signals code isn’t working because sender is greyed

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

    Which theme are you using?

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

    Thanks!

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

    Really helpful I stuck after writing app name as app instead of app.appconfig

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

    Awesome tutorial thanks! by the way what theme are you using?

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

    Can anyone have the fully functional source code of this projects.

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

    Great tutorial!
    Can you please make a tutorial on Django notification system using django-notifications or pinax-notifications??
    Thankyou

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

    Thanks I never found a course with django signals,
    Can you please make video on select_related and prefetch_related()

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

    Great !

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

    How can i use this signal to keep history? For example, i have a table that have computer inventory records, i want to make Django keep the records of the data that was in that computer inventory table but move them to a new table created...making it keep a kind of history...please, how can i do that?

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

    can you please make another video on how can i get something like two or more foreign key to one model from deferent models. like; i have a model of countries. all countries. i have another model for states. but my third model is cities. the city has column of country id and state id. when creating a city, first i have to choose the country. then, state of the chosen country shall show up. and i could be able to chose state and finally add the city name.
    it would be much appreciated if you could light up on this.

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

    what is the instance.profile.save() for? I put it in my code but it just gives me an error

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

    Great job. Can you please make a tutorial on Django oauth2 package?

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

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

    TypeError at /customer/1/
    __str__ returned non-string (type NoneType)
    when I click customer view. this error comes what is this problem

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

      did you resolve this error?

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

      @@prashantchanne2836 In your model Customer change method __str__,(self):
      return self.name,
      you must add in return "or 'some string'" e.g:
      return self.name or "empty name"

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

      @@kacperfrankowski7705 Or u can use return str(self.name)

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

      @@kacperfrankowski7705 Thanks bro, You are a genius!

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

      @@acment you can use .format() method much easier

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

    Can you please make a tutorial on django aullauth package?
    It would be really helpful!

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

      I second this. Also, how to integrate with external openid connect provider.

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

    if we have two profiles and we would like to create just one of them to get created can we do that?

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

    What is the difference between save() and create()

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

    Yoo, Can you make a video about Async on Django please ?

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

    Brother upload Django advance series . Your learning way just to good . Thank you

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

    Why signals do not work because you need to register it. In order to register you need to update __init__.py file with default_app_config = 'app_name.apps.app_nameConfig' so you don't have to do it in settings.py
    ;)

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

    Thank you (Y)

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

    I basically came to this video because I too didn't know about the work in apps config file. LOL
    And for one moment I thought that django doesn't work. Silly me :)

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

    I am getting syntax error in the ready method. It worked in other project for me but I started a new project and it is giving me SyntaxError: Invalid Syntax. Everything is good I double checked.

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

      Happening with me as well. It's saying base.signals could not be resolved .Did you find the solution??

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

      @@amandeepnokhwal5416 not yet. Bro.

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

    official doc for Signal docs.djangoproject.com/en/3.0/topics/signals/
    7:14 Signal with decorator
    9:13 file structure convention for using Signal
    10:08 docs.djangoproject.com/en/3.0/topics/signals/#django.dispatch.receiver
    12:09 docs.djangoproject.com/en/3.0/ref/applications/#for-application-authors

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

    in admin panel i am not having profile table can someone help?

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

      same issue..!!
      did u resolve this error!!

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

    papa django