• Stars
    star
    213
  • Rank 185,410 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Our production ready (too much) opinionated django template

My personal (very) opinionated django template

CircleCI Shields.io Maintainability Test Coverage Support me on Patreon

Easy peasy

What is in the box

  • API-only django (checkout this post in Russian) based on Django REST Framework with JWT support
  • pip-tools with separate development-time dependencies
  • Strict type checking with mypy, django-stubs and djangorestframework-stubs
  • flake8 with ton of plugins (contact me if you know more)
  • black as uncompromising code formatter
  • 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 ready. Set DATABASE_URL env var to something like DATABASE_URL=postgres://postgres@localhost:5432/postgres

Optional next steps

You definetely should consider this steps after installation:

Installation

$ pip install --upgrade cookiecutter
$ cookiecutter gh:fandsdev/django

FAQ

I have got an error «'random_ascii_string' is undefined»

You should upgrade cookiecutter to the latest version: pip install --upgrade cookiecutter

I wanna hack this!

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