Includes:
- Custom user model
- User registration
- Linting (flake8 / mypy)
- Create a virtual environment
python3 -m venv venv
-
Rename
djangoproject/.env.sample
,djangoproject/.env
. Change the secret key to a value of your choice. -
Install requirements
pip install -r requirements.txt
- Run migrations
python manage.py migrate
- Create a superuser
python manage.py createsuperuser
- Enable linting (VScode only)
Create a directory called .vscode
In .vscode
, create a file called settings.json
Copy the contents of settings.json.sample
into settings.json
.
This will enable Flake8, Mypy and Black. It will also enable autoformatting of Python files on-save as per the Black specification.