Quick start project template with Django Rest Framework.
- Django Rest Framework
- StdImage , Summernote for Django Admin
- Configuration for email sending
- Django DBBackup for quick backups
- Celery for asynchronous tasks
- PyTest as testing framework
- Gitlab CI config for deployments
- Docker Image into the private docker registry
- Delivery into K8S Rancher
- Local
.env
config (git-ignored by default, the example) - Dockerfile for the project and for static files serving
- Localization files
- S3 for Media, Static and Backups
- ⚠ PurpleEntry as log collecting service
- Clone the project
- Replace
myproject
by your name of the project (and renames files, folders)
scripts
-- folder with bash scriptsmyproject
-- django project
.env
file should be located in myproject/config/.env
.
Example file located here
Example configuration file
AWS S3 storage can be used for serving static and media files.
CI CD Prepared for Gitlab CI.
Name | Description | Example |
---|---|---|
RANCHER_URL | URL to rancher | https://rancher.int.toliak.ru |
RANCHER_DEPLOYMENT | (Optional) Deployment name | my-deployment |
DOCKER_IMAGE | Image with tag | $CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA |
REGISTRY_URL | Url to Docker Registry | registry.toliak.ru |
K8S_SECRETS | Secret path in K8S | my-project |
K8S_SECRETS_REGISTRY | Secret path registry in K8S | my-registry |
Name | Description | Example |
---|---|---|
RANCHER_TOKEN | Rancher API Bearer Token | token-adfsdf:asdijasd...iasjd |
REGISTRY_USERNAME | Docker Registry Username | asdadasd |
REGISTRY_PASSWORD | Docker Registry Password | asdasdas |
Using django-dbbackup
.
Backup will be stored into S3 Bucket.