Would be cool, if you could go deeper into how to structuring larger applications in a sailable and maintanable way. Including folder structure, business logic, validation... There are a lot of beginner tutorials. But it is much harder to find advanced tutorials.
As this post is 2 years old, keen to know 2 things: 1- Did you guys get a decent job or create a decent website that scaled well? 2- Maybe you can now answer your own question for me? I've been working on a large django project for 8 months and now have to make a massive database change because of a database design flaw. It'd be good to hault my progress and learn scalability concepts before I continue to prevent this from happening again. Thanks
This is a very good tutorial, i would suggest you make it a series whereby you cover this kind of Django specialized concepts that are not usually covered in general tutorials. You pick them same as you picked signals and focus only on them per video. it would have been nice if you also cover m2m signals. Thank you.
About adding slugs to an instance, doesn't using signals seems a little bit overkill, I mean I'm always overriding the save() method in the Model, check if there's a slug on the instance, if not, slugify the title, add it as an attribute to the instance and call the super save
Thank you for the great content. Will django signal works if i have to give access to students which was registered by teacher in school management system. Haven't seen tutorials taking about this. I would be very grateful if you give some idea. Thank you 🙏🙏🙏🙏
Great Tutorial! Helped me achieve some King of business logic in an Invoice and Stock Management System. But How To notify user in a django template in realtime like maybe the user x has been deleted or Added ?
I understood how to use signals. That was a great explanation. Thank you. I'd like to place a practical question, if I may: I don't see why I would implement the behaviours on BlogPost using signals. Why not override the save method (for instance) on the model itself? It seems to me a much cleaner workflow for the example you presented. By overriding the method I'd have all the class related behaviour in one place under the umbrella of the class itself. I can see the utility for signals when dealing with a layered architecture and I don't want to inject code of a higher layer into a lower layer (which shouldn't know anything about its clients). The first example, triggering actions based on User creation, matches perfectly this scenario. I know your intention is to bring a didactical example to showcase the signals. I'm just elaborating on this on my side. Congrats for the great content!
@@CodingEntrepreneurs Hi, thanks for replying. I read your blog post. I think the example you mention there is similar (you provide handlers for a class defined in another file) to the User example you use in the video, which for me is ok. What is making me think is the Blogpost model. In this case I'm trying to figure out what makes more sense.
Hi sir, Big fan of you and your tutorial. I have a request on Django framework. I have searched RU-vid and google about booking system with Django. But I did not get proper instruction how to do that. If you upload tutorial about that, it will be very grateful. Thank you, sir. 🥰🥰🥰
Nice tutorial as always 😉 Thanks for sharing. I have one query regarding usage of signals in a distributed environment. Let's say we are running django in multiple processes via docker or something and these signals are run inside the same process in which the model was created. So how to handle scenarios for failover. Like if the process got crashed without executing let's say the post save signal. And when it restarts, the signal is lost but model got saved. Any ideas on these scenarios?
Here is some challenge i guess How to pass additional data to the signal For example we have default user model and while user registration we are also asking for some additional data like phone number, DOB, etc ..these additional data needed to pass to the signal
I would like to see a deep dive into Channels because there seems to be little to no in depth explainations with the same way you present the details which is so unique and understandable
25:22 He says, "actually that doesn't cover all types of delete". That means that when you delete multiple objects(using multiple checkboxes in django admin), def delete () would not work there. It only works on single object. Hope this clears someone doubt.
what's the best way to implement dependant drop-down chained field in a django form(like: country->city and category->subcategory) retrieving data from db. i personally have difficulty to get the response back and populate the field(although i followed some examples but not happening). thank