Thorgate's Django template
- Django 1.11 (because it's LTS)
- Separate settings for different environments (local/staging/production)
- Python 3.4 / 3.5 / 3.6
To use this template, first ensure that you have
You should probably create additional python3 virtual environment for cookiecutter, activate it
and then install following packages by running following command:
pip install cookiecutter cookiecutter_repo_extensions fqdn
Then just execute:
It will ask you a few questions, e.g. project's name.
After generation completes, search for any TODOs in the code and make appropriate changes where needed.
See README.md in the generated project for instructions on how to set up your development environment.
Upgrading project template
First ensure you have a python3 interpreter with
To upgrade an existing project, change the current working directory to the root of the project you want to upgrade. i.e.
cd project-to-upgrade. Ensure your are not in the
This will make a commit to the branch
template in your project with the updates to the project template. Then merge the