This is a Django backend template. It includes some useful features and tools.
Please specify the required variables in .env
for this project.
- Docker
- Backend -> Django 5
- Database -> PostgreSQL
- Load Balancer -> NGINX
- API Proxy -> api_proxy
- User login history -> django_login_history
- Login Playground (Session, JWT) -> dev_dashboard
- 3rd Party Login with JWT -> Custom Allauth Adapter (authentication)
- Websocket(WSGI) -> Django Channels
- Async Task -> Django Q2
- Documentation -> Redoc, Swagger
docker-compose build && docker-compose up
Clean up and rebuild.
rm -rf backend-db-data && docker-compose down -v && docker-compose build && docker-compose up
You can check the setting in here.
Ensure your environment is ready in
.env
file.
- Create superuser
bash dev-tool.sh create-superuser
- Enter Shell
bash dev-tool.sh shell
- Start New APP
bash dev-tool.sh django-startapp <YOUR_NEW_APP_NAME>
The playground is a place to test the login system and websocket.
-
DEV dashboard: http://localhost:5566/api/__hidden_dev_dashboard
-
Websocket Test Page: http://localhost:5566/api/ping/index
Here's port
5566
is an example. You can define it in.env
file.