Learn the Basics of Django Signals

  Рет қаралды 49,862

Matt Freire

Matt Freire

5 жыл бұрын

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 жыл бұрын
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.
@topsome6025
@topsome6025 4 жыл бұрын
Best tutorial for signals so far! Excellent work sir, keep it up.
@FernandoPosserPinheiro
@FernandoPosserPinheiro 5 жыл бұрын
Best django signals tutorial i ever see
@avanishgupta5040
@avanishgupta5040 5 жыл бұрын
I am really thankful to you sir for this video which covers all the basic concepts of signals .
@Shaunmcdonogh-shaunsurfing
@Shaunmcdonogh-shaunsurfing 4 жыл бұрын
It’s GREAT how you explain the code. Grateful brother.
@MrValVet
@MrValVet Жыл бұрын
Hey JD, thank you for your awesome Django tutorials. For me, these are by far the best on YT.
@maahad767
@maahad767 3 жыл бұрын
I was struggling with this, and you made this easy for me. Thanks man.
@Gonfalon88
@Gonfalon88 4 жыл бұрын
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!
@onelinkonelink1677
@onelinkonelink1677 Жыл бұрын
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 :))
@thomasrackow8159
@thomasrackow8159 5 жыл бұрын
Again a great Django tutorial video. Thanks a lot.
@ameerhbaig
@ameerhbaig 4 жыл бұрын
Thanks a lot. You really helped me understand the basics of signals. They were certainly intimidating before this.
@muhsinkhalif3621
@muhsinkhalif3621 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).
@maahad767
@maahad767 3 жыл бұрын
me too.
@jonl316
@jonl316 2 жыл бұрын
Such a great tutorial! Love what you are doing there and thanks so much.
@xyzmoral262
@xyzmoral262 5 жыл бұрын
Thanks a lot...You make it more easy to understand.
@michelkant
@michelkant 5 жыл бұрын
Big like for the very clear explanation!
@codeproduct9904
@codeproduct9904 3 жыл бұрын
Thanks for your great effort, Matthew.
@amitbaderia4194
@amitbaderia4194 4 жыл бұрын
Very well explained. Thanks a lot !
@theadrix92
@theadrix92 3 жыл бұрын
You made it so easy. Thank you
@FahmiEshaq
@FahmiEshaq 3 жыл бұрын
Well explained. Thank you
@MVTN
@MVTN 3 жыл бұрын
Thanks for the video, it really helped me out!
@mohammadsamir2713
@mohammadsamir2713 5 жыл бұрын
Thanks a lot for your efforts
@shreyasambre295
@shreyasambre295 3 жыл бұрын
Nice explanation. I read the documentation but it was bouncers for me u cleared me the concept
@eesakamaldien1917
@eesakamaldien1917 2 жыл бұрын
Thank you so much for this
@oyatilloismoilov5540
@oyatilloismoilov5540 2 жыл бұрын
Thank you so much bro✊
@SanjayKumar_optimist
@SanjayKumar_optimist 2 жыл бұрын
Very much helpful, good explanation.
@timothybloxsome5802
@timothybloxsome5802 5 жыл бұрын
This is gold!
@codeevangelist
@codeevangelist 4 жыл бұрын
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
@maxitorres7
@maxitorres7 4 жыл бұрын
Thanks a lot man! realy usefull
@10yearsago84
@10yearsago84 3 жыл бұрын
Amazing Explanation. Really liked the video.
@chetty1212
@chetty1212 2 жыл бұрын
great vide on signals thank you
@spreadhysteria3650
@spreadhysteria3650 3 жыл бұрын
Perfect, I am planning to make a log file of users activity in a .txt file.
@mohamedabdelmoneim5721
@mohamedabdelmoneim5721 3 жыл бұрын
thank you, This is awesome
@aaryacollections2211
@aaryacollections2211 3 жыл бұрын
This video was very helpful.
@Kapone2596
@Kapone2596 3 жыл бұрын
Great tutorial.
@Unknown-ck7fi
@Unknown-ck7fi 4 ай бұрын
to the point , thanks
@nsulanov312
@nsulanov312 5 жыл бұрын
Great 👍🏼 tutorial
@geniusxbyofejiroagbaduta8665
@geniusxbyofejiroagbaduta8665 4 ай бұрын
Thank you sir
@peterrusznak6165
@peterrusznak6165 2 жыл бұрын
yeah, great stuff. subscription earned.
@tanimsk
@tanimsk 3 жыл бұрын
thanks!!!!
@dannyhd8301
@dannyhd8301 Жыл бұрын
absolutely gr8
@yoga_with_atharva
@yoga_with_atharva 4 жыл бұрын
nice explanation👌
@panagiotisgoulas8539
@panagiotisgoulas8539 3 жыл бұрын
Thank you was a very confusing topic imo that you explained thoroughly.
@anisdhouieb9918
@anisdhouieb9918 3 жыл бұрын
Hi, thank you for this video, which vscode extension do you use to get autocompletion with Django ???
@shashanksharmadon4295
@shashanksharmadon4295 4 жыл бұрын
Awesome...................
@Nadeemkhan-fs2ys
@Nadeemkhan-fs2ys 5 жыл бұрын
Great
@NMD137307
@NMD137307 2 жыл бұрын
16:43 custom signals
@letccc
@letccc 5 жыл бұрын
Which VScode extension you are using for Django intellisense ?
@defidelity8711
@defidelity8711 2 жыл бұрын
Ykb 👍 thanks
@sumit180288
@sumit180288 3 жыл бұрын
Which is the color theme in vs code you use ?
@pratiksharma6522
@pratiksharma6522 3 жыл бұрын
which extensions of python you are using for django in vscode ?
@rathnaveljn423
@rathnaveljn423 4 жыл бұрын
HOW TO perform some action when a dropdown menu is changed its item in DJANGO?
@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
@Brun69M
@Brun69M 4 жыл бұрын
why is the Post the sender of request_counter_signal ?
@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.
@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 ?!!
@alimurtuza347
@alimurtuza347 4 жыл бұрын
it is bit confusion that we call that signal before the request is done
@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 жыл бұрын
+Jaehong Park Thanks. Yes we do plan on making a tutorial on it in the coming weeks
@mr2mato
@mr2mato 5 жыл бұрын
We only can use django signals in models.py, or we can use it in view.py too?
@nomanabid7113
@nomanabid7113 5 жыл бұрын
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
@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.
@Zzzzzzzzzzzzzzzzzzzzr
@Zzzzzzzzzzzzzzzzzzzzr 5 жыл бұрын
can signals be used on the frontend to instead send the message to the frontend instead of the terminal? Thanks
@nomanabid7113
@nomanabid7113 5 жыл бұрын
yes
@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
@davidmurphy563
@davidmurphy563 2 жыл бұрын
I wonder if anyone else here has experience with the Godot games engine which has a practically identical signals system.
@pariszarka7959
@pariszarka7959 5 жыл бұрын
i want to use signals to send an email to the user everytime a user is registerd
@nomanabid7113
@nomanabid7113 5 жыл бұрын
you can
@aayushdadhich1822
@aayushdadhich1822 4 жыл бұрын
as simple as that.
@shahzadisairaawan5079
@shahzadisairaawan5079 4 жыл бұрын
sir, can you please turn up your volume. all of your videos are very low in sound
@shaheerzaman620
@shaheerzaman620 5 жыл бұрын
Good Video. The audio is too low in all your videos. Please make it louder.Thanks.
@sandrynin
@sandrynin 5 жыл бұрын
бесполезный копипаст из документации
How to deploy a Django project with DigitalOcean
31:47
Matt Freire
Рет қаралды 89 М.
Learn the basics of Django's Model Managers and Querysets
19:38
Matt Freire
Рет қаралды 44 М.
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 28 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 118 МЛН
But how do DJANGO signals work?
35:47
CodingEntrepreneurs
Рет қаралды 41 М.
django Architecture - Connection Management
15:10
Hussein Nasser
Рет қаралды 43 М.
Django ORM - Introducing Django Signals and the Observer Pattern
13:45
Python Django Explained In 8 Minutes
8:11
Dennis Ivy
Рет қаралды 267 М.
Why are people SO obsessed with useSignal()?
3:41
Steve (Builder.io)
Рет қаралды 67 М.
Understanding Django Model Relationships
25:56
Pretty Printed
Рет қаралды 94 М.
Creating a Custom User Model (Django)
21:57
CodingWithMitch
Рет қаралды 103 М.
Django Forms Tutorial For Beginners - Get Started Fast! (2018)
29:36
The Dumbfounds
Рет қаралды 165 М.
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 28 МЛН