/doebus-django

Django best practices template

Primary LanguagePythonMIT LicenseMIT

Doebus Django Template

I use this repository as a starter modern API Django template in my projects. This repository is forked from @fandsdev/django and was originally created by @f213.

What’s inside

  • Flake8 (.flake8) for linting, lots of plugins included
  • Isort (.isort.cfg) to sort import statements
  • Django Rest Framework with JWT support
  • Poetry (pyproject.toml) to manage dependencies
  • Celery to run background tasks
  • Multiple settings sections using django-split-settings
  • Checking for stale fixtures with pytest-dead-fixtures
  • A tool that makes custom migration names mandatory (app.management.commands.makemigrations)
  • Postgres as local development DB
  • RabbitMQ as local Celery message broker

How to install

  1. Install Poetry.

  2. Install Cookiecutter.

  3. Install Docker and Docker Compose.

  4. Open up a background terminal and run docker-compose up postgres redis rabbitmq

  5. Run the following command: cookiecutter gh:vsevolod-skripnik/doebus-django