Django Template for OVINC Services
$ pip install cruft
$ cruft create https://github.com/OVINC-CN/DevTemplateDjango.git --checkout main
Create .env
file in the base directory
WEB_PROCESSES=
WEB_THREADS=
DEBUG=
LOG_LEVEL=
APP_CODE=
APP_SECRET=
BACKEND_HOST=
FRONTEND_URL=
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_PORT=
REDIS_HOST=
REDIS_PORT=
REDIS_PASSWORD=
REDIS_DB=
SESSION_COOKIE_DOMAIN=
OVINC_API_DOMAIN=
$ python manage.py runsslserver dev.api.com:8000
Now you can customize your app.
$ docker build . -t ${label}:${tag}
$ docker push ${repo}/${label}:${tag}