Skip to content

Our production ready (too much) opinionated django template

License

Notifications You must be signed in to change notification settings

fandsdev/django

Repository files navigation

fands.dev django template

Shields.io

Easy peasy

What is in the box

  • API-only django (checkout this post in Russian) based on Django REST Framework with JWT support.
  • poetry with separate development-time dependencies.
  • Strict type checking with mypy, django-stubs and djangorestframework-stubs.
  • tons of linters and formatters (contact me if something interesting not included, see Makefile fmt, lint commands).
  • Starter CI configuration on GitHub Actions.
  • pytest with useful stuff like freezegun, pytest-mock and super convinient DRF test client
  • Custom user model.
  • drf-spectacular for API Schema generation.
  • django-axes for additional security.
  • Whitenoise for effortless static files hosting.
  • cloudflare-ready with django-ipware.
  • Sentry. Set SENTRY_DSN env var if you need it.
  • Postgres.

Installation

First, make sure you have PostgreSQL up and running (check the {{ cookiecutter.name }}/src/app/.env.ci DATABASE_URL and {{ cookiecutter.name }}/docker-compose.yml for configuration). After that:

poetry install

poetry run cookiecutter gh:fandsdev/django

FAQ

I wanna hack this!

Thank you so much! Check out our build pipeline and pick any free issue.