Django Starter with CustomUser, Django Documentation Generator, DEV-PROD settings, pipenv, and Heroku Procfile
- NOTE: Author is using PowerShell for this guide.
- Custom user model.
- Django admin documentation generator.
- Separate DEV and PROD settings.
- Pipfile included.
- Heroku Procfile included.
- User has functioning Python 3.11 installation.
- User has functioning pipenv installation.
- User has functioning git installation.
- User is familiar with how to use terminal commands.
- User has Heroku account.
- User has Heroku CLI installed.
- Deployment checklist - docs.djangoproject.com
- This template has Django
SECRET_KEY
exposed in development settings files. It is important to create your own separateSECRET_KEY
for development and production and keep them out of the codebase. This template hasSECRET_KEY
exposed in order to get the user up and running quickly.
- This template has Django
- Create Repository from DjangoCustomUserStarter-heroku Template
- Run Application Locally
- Create Heroku Application Server Instance
- Provision Database Server Instance
- Add DJANGO_SETTINGS_MODULE to Config Vars
- Add Django SECRET_KEY to Config Vars
- Add Database Settings to Config Vars
- Modify ALLOWED_HOSTS
- Push to Heroku and Create Superuser
- CustomUser method: Django Best Practices: Custom User Model - Will Vincent - learndjango.com
- Docutils: The Django admin documentation generator - docs.djangoproject.com
- DEV and PROD settings: Configuring Django Settings for Production - thinkster.io
- Pipenv & Virtual Environments
- User installation:
pip install --user pipenv
- Global installation:
pip install pipenv
- User installation: