A simple project to demonstrate how to signal works in django.
Please refer my blog for more details :)
Signal Dispatcher are nothing but a well known design pattern Observer Pattern with just a basic difference that signal is known as subject
and receiver is known as observer
.
git clone https://github.com/nightwarriorftw/signals.git
cd signals
Install docker and docker-compose. After installing those run the following commands
- build the docker image
docker-compose build
- run docker-compose
docker-compose up
It may take some time to pull all images and build them. Be patient :)
Open a new terminal and enter the api
container with the help of the following command
docker-compose exec api bash
Now, run the following commands :
python manage.py makemigrations
python manage.py migrate
- Github: nightwarriorftw
- Linkedin: nightwarriorftw
- Twitter: nightwarriorftw
Credits goes to me