Member-only story
How to create and implement Signals in Django
My article is for everyone! Non-members can click on this link and jump straight into the full text!!
In this article, we will learn one of the best features of Django Signal. When I came across of signal I was like is this really happening?
Django Signals
- Signals are used to perform any action on modification of a model instance.
- It is a way to inform your app of a certain task when it takes place.
Requirement
- Django
- Python
Why do I use the Django Signals?
My Story, When I was doing freelancing at that time my client asked me to do a task, but sorry, I can not tell you what was the actual task. Let’s take an example, suppose you are buying items from a shop and the shop owner wanted to maintain his shop stock so he can run his business smoothly.
There are many ways we can do this let’s discuss two
- 1st approach whenever someone Purchases some item so at that time we need to update the…