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...
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
I've spent hours watching videos on signals to no avail. Dennis comes in and explains it in frickin' 13 minutes.
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
I like that you talk meaningfully fast enough to make it impossible for me to listen at 2X speed.
the best django crash course on TH-cam.
Денис, привет. Очень помог разобраться с этими сигналами!
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.
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.
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.
Yea that one tricked me for a while :)
Will this solution work when you go live as well?
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.
YOU ARE AWESOMEEE, YOU ARE MY HERO OF THE MONTH :)
great django content. dennis love you
Please make video on Generic Foreignkey in Django
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 :)
Wow...this video made my night. You are a hero💯
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
Great explanation, Dennis. Thanks!
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
haha wrong video... maybe it was the last one about the images...
Tons of thanks you made my day
thanks for the tips on signals. my signals was not working and i was really worried. helped alot.
you just murdered my 3 days old bug, thank you man
feels like a java spring annotation when i use this. Good job dennis! keep up the good work
This is the best free code, ever!
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.
thanks Dennis, this video helps me a lot!
as always ,thanks
Awesome, many thanks.
Thank you!!
Excellent course
22/07/2020
I love you!!!!
thanks
Thank you very much.
Nice one sir
NOT NULL constraint failed: lms_studentdata.student_class_id
I am facing this error can anyone explain
you re awesome
let's go ahead, let's go ahead, let's go ahead...
For some reasons, sender is not being accessed by pylance and the signals code isn’t working because sender is greyed
Which theme are you using?
Thanks!
Really helpful I stuck after writing app name as app instead of app.appconfig
Awesome tutorial thanks! by the way what theme are you using?
Can anyone have the fully functional source code of this projects.
Great tutorial!
Can you please make a tutorial on Django notification system using django-notifications or pinax-notifications??
Thankyou
Thanks I never found a course with django signals,
Can you please make video on select_related and prefetch_related()
Great !
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?
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.
what is the instance.profile.save() for? I put it in my code but it just gives me an error
Great job. Can you please make a tutorial on Django oauth2 package?
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?
TypeError at /customer/1/
__str__ returned non-string (type NoneType)
when I click customer view. this error comes what is this problem
did you resolve this error?
@@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"
@@kacperfrankowski7705 Or u can use return str(self.name)
@@kacperfrankowski7705 Thanks bro, You are a genius!
@@acment you can use .format() method much easier
Can you please make a tutorial on django aullauth package?
It would be really helpful!
I second this. Also, how to integrate with external openid connect provider.
if we have two profiles and we would like to create just one of them to get created can we do that?
What is the difference between save() and create()
Yoo, Can you make a video about Async on Django please ?
Brother upload Django advance series . Your learning way just to good . Thank you
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
;)
Thank you (Y)
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 :)
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.
Happening with me as well. It's saying base.signals could not be resolved .Did you find the solution??
@@amandeepnokhwal5416 not yet. Bro.
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
in admin panel i am not having profile table can someone help?
same issue..!!
did u resolve this error!!
papa django