
Django Boilerplate including PostgreSQL as database, custom user model that uses email as username and dockerized. Based on Python, Django, PostgresSQL, Docker.
Django Boilerplate is a starting point for Python-Django websites and APIs. It provides a set of pre-configured features and functionalities that can be used as a foundation for developing Django projects.
.env file and add the necessary environment variables.docker build . && docker-compose build
docker-compose up
pip install -r requirements.txt
python manage.py wait_for_db && python manage.py migrate
python manage.py runserver
docker-compose run --rm app sh -c "python manage.py makemigrations"
docker-compose run --rm app sh -c "python manage.py createsuperuser"
docker-compose run --rm app sh -c "python manage.py test"
Note: If the application is not an API, remove "djangorestframework" from the requirements.txt file.
Django Boilerplate provides a solid starting point for Python-Django projects by offering a custom user model, PostgreSQL configuration, and Docker support. It offers easy installation instructions for both Docker-based and non-Docker setups, along with helpful commands for managing the project.
