This project was generated from the Momentum Django project template. This template sets up some minimal changes:
- django-extensions and django-debug-toolbar are both installed and set up.
- django-environ is set up and the
DEBUG,SECRET_KEY, andDATABASESsettings are set by this package. - There is a custom user model defined in
users.models.User. - There is a
templates/and astatic/directory at the top level, both of which are set up to be used. - A
.gitignorefile is provided. - Poetry is used to manage dependencies.
In an empty directory, run:
django-admin startproject --template=https://github.com/momentumlearn/django-project-template/archive/master.zip --name=pyproject.toml --name=.pre-commit-config.yaml project .
poetry install
cp project/.env.sample project/.env
./manage.py migrate
If you want to use another directory for your project directory, replace project above with the name of your directory.