π
Welcome to django-startproject
Django startproject template with batteries
π© Features
- Django 4.2.x
- django-click
- Docker
- Docker Compose
- environs[django]
- psycopg2-binary
- whitenoise
π CI
- django-test-plus
- model-bakery
- pre-commit
- pytest
- pytest-cov
- pytest-django
π Homepage
π§ Install
$ django-admin startproject \
--extension=ini,py,toml,yaml,yml \
--template=https://github.com/jefftriplett/django-startproject/archive/main.zip \
example_project
π Usage
# Build our Docker Image
$ docker-compose build
# Run Migrations
$ docker-compose run --rm web python manage.py migrate
# Create a Superuser in Django
$ docker-compose run --rm web python manage.py createsuperuser
# Run Django on http://localhost:8000/
$ docker-compose up
# Run Django in background mode
$ docker-compose up -d
# Stop all running containers
$ docker-compose down
# Run Tests
$ docker-compose run --rm web pytest
# Re-build PIP requirements
$ docker-compose run --rm web pip-compile requirements/requirements.in
Author
- Website: https://jefftriplett.com
- Twitter: @webology
- Github: @jefftriplett
π€ Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a