Skip to content

backbonesk/django-project-template

Repository files navigation

Django project template

Simple quickstart for Django-based projects created as cookiecutter template.

What's inside?

  • Exception handling (ProblemDetailException, ValidationException prepared for django_api_forms)
  • Basic security (signature middleware, Argon password hasher)
  • Hard/soft delete for models
  • Custom User model
  • Response objects (SingleResponse, ValidationResponse)
  • Custom JSON encoder prepared for porcupine-python serializer
  • Configuration using .env files
  • Sentry integration
  • Dependency management using poetry
  • Multi-environment settings
  • E-mail testing using django-imap-backend in development environment
  • CRON job management

Bundled dependencies

Usage

You need to have installed cookiecutter in your system, then you can call. You will be asked a few questions about the new project (name, target directory):

cookiecutter gh:backbonesk/django-project-template

Next steps

  1. Check pyproject.toml and change the authors list
  2. cd {{ directory_name }}
  3. python -m venv venv
  4. poetry install && poetry update
  5. Remove stuff you don't need (template is feature rich on purpose, it's easier to delete than create)
  6. Take a coffee and celebrate life, you saved a plenty of time!

Made with ❤️ and ☕️ BACKBONE s.r.o. (c) 2021