The Django backend provides the server-side logic and database interactions for the application.
To set up the environment for this project, follow the steps below:
- Install Python 3.x and pip.
- Create a virtual environment for the project using virtualenv or venv. You can create a virtual environment named "envpuf" using the following command:
python -m venv env
- Activate the virtual environment. On macOS and Linux, run the following command:
source env/bin/activate
- Install the project dependencies using pip:
pip install -r requirements.txt
- Run the Django development server:
python manage.py runserver
- To start the Celery worker, run the following command in the project root directory:
celery -A pufBackend worker -l info
- Start Daphne Daphne is an ASGI server used to run Django applications with asynchronous support. To start Daphne, run the following command in the project root directory:
daphne pufBackend.asgi:application --port 8089
// TODO