In this video we will go over Django Signals, what they are and how to use them. To do this, we will create a few examples using 4 different signals, the pre_save, post_save, pre_delete, post_delete. We will also create 2 different real world examples. We will automatically create a profile every time a user is created and we will create an Audit object to track every time a user is deleted. By the end of this you should have a basic understanding of senders, receivers, the instance, the created flag, and how to use Django Signals to run specific functions whenever a specific action happens on an object.
Starting Code:
https://github.com/legionscript/Djang...
Ending Code:
https://github.com/legionscript/Djang...
Django Signals Docs:
https://docs.djangoproject.com/en/3.2...
Legion Script Website:
http://legionscript.com/