Skip to content

nightwarriorftw/signals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Issues Forks Stars Maintained Made with Python Open Source Love Built with Love Follow Me Telegram

signals - Django Custom Signals

📒 Index

🔰 About

A simple project to demonstrate how to signal works in django.

Please refer my blog for more details :)

🔧 Development

📓 Pre-Requisites

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.

🔩 Development Environment

1. Clone the repo

git clone https://github.com/nightwarriorftw/signals.git
cd signals

2. Setup project

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 :)

3. Makemigrations, migrate and run the server

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

🌟 Credit/Acknowledgment

Aman Verma

Credits goes to me

🔒 License

LICENSE