sudo apt-get install libpq-dev python-dev
pip install -r requirements.txt
- Create .env file from .env.example
python manage.py migrate
python manage.py runserver
celery -A django_web worker -l info
celery -A django_web beat
docker-compose up [--detach] [--build]
docker-compose logs -f
docker-compose down
- http://127.0.0.1:8000/
- http://127.0.0.1:8000/create?text=hello (wait 1 minute)
- Add Gunicorn
- Add an Entrypoint with DB and Broker as optional for local dev
- Add logger
- Add more things from here https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
- Add statics
- Add SSL
- Improve collectstatic flow
- Add env vars to docker env vars