A cookiecutter for create a simple and standard Django project with everything necessary for a backend. Unlike other cookiecutters, it is less intrusive.
Install or update Cookiecutter to the latest version:
$ pip install -U cookiecutter
Create your new project using this cookiecutter:
$ cookiecutter https://github.com/Nekmo/cookiecutter-django-backend.git
Or use the abbreviation (see below):
$ cookiecutter dj
This cookiecutter is based on cookiecutter-django, but the structure is standard and simpler.
- For Django 2.0+
- Docker support using docker-compose.
- Secure by default. With HTTPS Nginx config and Let'sEncrypt.
- Develop and production settings
- Ready for Celery and Django Rest Framework.
- Deployment using Ansible and Docker.
There are certain options that are always repeated every time cookiecutter is executed. Create a .cookiecutterrc
file in your user directory:
default_context:
author_name: Nekmo
github_user: Nekmo
email: myemail@nekmo.com
open_source_license: MIT
timezone: Europe/Madrid
abbreviations:
dj: https://github.com/Nekmo/cookiecutter-django-backend
gh: https://github.com/{0}.git