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

CircleCI Shields.io Support me on Patreon

![Easy peasy](https://user-images.githubusercontent.com/1592663/79918184-93bca100-8434-11ea-9902-0ff726a864a3.

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 check, fmt 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 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

poetry install

poetry run 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.