- Notifications
You must be signed in to change notification settings - Fork6
The ultimate Django template: production ready Django 4.1 with Docker, HTTPS and CI/CD using Github actions ️🔥
License
adriancast/django-template
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Lets be clear. If you can do a task in less than 5 minutes why would you even bother in do all this hard work by yourself? This cookie cutter provides you with:
- Django base project: The wizzard will create a default Django project structure
- CI/CD integration with Github actions: Github actions will be already configured in your project. It will deploy to your production server everytime a new commit is pushed to the master branch.
- Docker: you will get Docker support out of the box. You will get a production ready Docker environment and also a local development environment to add new features to your project.
- Docker environment files: The template will automatically the environment files that contains all the sensetive data. This files will not be reposited in your project to prevent password leaks.
- HTTPS out of the box: When using the template wizard, you must use the real production domain for your project. This will be used to create the certificates of your production domain. The certificates will be automatically renewed.
- Monitoring: If selected in the wizard, Sentry configuration will be added to your project. Remember to edit the Sentry DSN once you created your project in order to connect your project with your Sentry account.
- Metrics: If selected in the wizard, Grafana and Prometheus will be added to your project. This template will configure the datasource automatically and will add a dashboard to your Grafana displaying basic metrics of your Django application.
The .envs generated by the template will be in the .gitignore. Those files will be generated but will not be reposited. When you install the app in the server, make sure that you copy the .env files.
In order to make Letsencrypt generate the certificates it will use a HTTP-01 challenge. In order to configure the pro environment, make sure that the domain configured in the cookicuter is properly configured in the DNS side. You must add A and AAA records in order to make letsencrypt work. If you want to learn more of the challenges that Letsencrypt does, follow thisguide.
To execute the cookiecutter template wizard run:
$ pip install cookiecutter$ cookiecutter gh:adriancast/django-template
If you need more information about cookiecutter visit thisoficial guide.
About
The ultimate Django template: production ready Django 4.1 with Docker, HTTPS and CI/CD using Github actions ️🔥
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.