Another starter template with Django
Key Features
- RESTful API: This template is for design purposes and rapid deployment based on the power from Django.
- Django Ninja: Very high performance web framework for building APIs. Thanks to vitalik / django-ninja
- Very basic account authentication kit: Forget about the initial steps from the login / registration and start racing business.
- Preconfigured Huey: A little task queue for python
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
python manage.py createsuperuser
Now go to http://127.0.0.1:8000/api/docs
You will see the automatic interactive API documentation (provided by Swagger UI):
In one terminal, run:
python manage.py run_huey
Make sure there's .env.prod
file existed with the right environment variables.
Should clone template from .env.prod-sample
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml up -d
docker exec -it <django-container-id> /bin/bash
docker exec -it <django-container-id> python manage.py shell