This is a Django structure project that was collected from my work experience. You can use this repo as a start point for your newly Django project.
- Current Celery 4.2.1 ONLY SUPPORT Python (2.7, 3.4, 3.5, 3.6), DO NOT use Python 3.7 because of this async keyword issue
- ONLY USE
redis==2.10.6
because of this float issue on redis 3.0.0
- All project apps are moved into
apps
folder for good structure - Different environments has its own settings that extend from
settings/base.py
file, instead of using default Djangosettings.py
file:settings/dev.py
(For Development env)settings/prod.py
(For Production)- And you can add your own file, e.g
settings/test.py
for your Test env.
- Customize
User
model, so you can extend the model to meet your function without using profile model method - Integrate and pre-config for Celery Task Queue include Scheduled Tasks. I think your project eventually will need a task queue system.
- Docker compose config. One command to run them all.
$ docker-compose up -d
Boom, the server is running on: http://localhost:8000
- Integrate Django Rest Framework and Demo API
- Integrate Swagger for API document
- Integrate Django unit tests
MIT License
Copyright (c) 2018 Vuong Hoang vuonghv.cs@gmail.com