An utterly fantastic project starter template for Django 3.2
- Production-ready configuration for Static Files, Database Settings, Gunicorn, etc.
- Enhancements to Django's static file serving functionality via WhiteNoise.
- Latest Python 3.7 runtime environment.
To use this project, follow these steps:
- Create your working environment.
- Install Django (
$ pip install django==3.2.*
) - Create a new project using this template
- Delete this file (README.md)
Using this template to create a new Django app is easy::
$ django-admin.py startproject --template=https://github.com/hut42/heroku-django-template/archive/master.zip --name=Procfile --name README.rst helloworld
(If this doesn't work on Windows, replace django-admin.py
with django-admin
)
You can replace helloworld
with your desired project name.
To build the documentation, install the documentation requirements from requirements_docs.txt
:
pip install -r requirements_docs.txt
Then use Sphinx to build the docs:
make -C docs html
Compiled docs can be found in the :code:docs/_build
directory.