This project demonstrates the handling of Django signals using post_save
. It includes examples of synchronous execution, same-thread execution, and transactional behavior.
-
Clone the repository:
git clone https://github.com/Shenile/AccuKnox-Django-Assignment.git
-
Navigate to the project directory:
cd signals_assesment
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install dependencies:
pip install -r requirements.txt
-
Run migrations:
python manage.py migrate
-
Run the server:
python manage.py runserver
To run tests, use:
python manage.py test