$ django-admin startproject --name Procfile,setup.cfg --template https://github.com/rougeth/django-template/archive/main.zip new_django_project .
-
Heroku Ready
Heroku is a container-based cloud Platform as a Service (PaaS). It's easy to use, manage and scale. Is it expensive? Depend of the use case, but if you consider the time you won't spend configuring and maintaining a server, probably not.
-
accounts
Django app with a single emptyUser
model:If you’re starting a new project, it’s highly recommended to set up a custom user model, even if the default User model is sufficient for you. This model behaves identically to the default user model, but you’ll be able to customize it in the future if the need arises.
Procfile
- Define how Heroku runs the application (Django + Gunicorn) - https://devcenter.heroku.com/articles/procfileruntime.txt
- Define which Python version to run the application - https://devcenter.heroku.com/articles/python-runtimes
python-decouple
- Define settings likeDEBUG
,ALLOWED_HOSTS
orSECRECT_KEY
in a environment variable or.env
file when running locally - https://pypi.org/project/python-decouple/psycopg2-binary
- PostgreSQL database adapter for Python - https://pypi.org/project/psycopg2-binary/dj-database-url
- Database configuration in a single url - https://pypi.org/project/dj-database-url/whitenoise
- Serve static files directly from Heroku/Django - http://whitenoise.evans.iogunicorn
- WSGI HTTP Server for Python - https://gunicorn.org/
ipython
- Python & Django shell with super powers - https://pypi.org/project/ipython/ipdb
- Python pdb debugger integrated withipython
- https://pypi.org/project/
pytest
- The best testing framework for Python - https://docs.pytest.org/en/stable/black
- Code formatter - https://pypi.org/project/black/isort
- Utility to sort imports alphabetically and automatically separated into sections - https://pypi.org/project/isort/