This project built upon Django with Docker for local development and Celery Beat for periodic task scheduling. Follow this instructions for setting up the project, building Docker images, running Django, and configuring Celery Beat.
Ensure all required Python packages are installed.
pip install -r requirements.txt
To build the Docker image:
docker build -t my-django-app .
To run the Docker container:
docker run -p 8000:8000 my-django-app
After running the Docker container, you can open the Django project at:
http://localhost:8000
To set up Celery Beat with periodic tasks, run the following command:
python manage.py <your_celery_beat_command>
Running Django Commands in Docker To run Django management commands within the Docker container:
bash
docker exec -it <container-name> python manage.py <command>
Replace with the name or ID of your running container, and with the Django command you want to run.
Ensure all required Python packages are installed. Run the following command in your terminal:
pip install -r requirements.txt
python manage.py makemigrations
and then
python manage.py migrate
Now with having these steps done you can easily access the project on your local
python manage.py runserver