pavelpy / django

My personal (very) opinionated django template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My personal (very) opinionated django template

CircleCI 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
  • Starter Circle CI configuration
  • pytest with usefull stuff like freezegun, pytest-mock and super convinient DRF test client
  • flake8 with ton of plugins (contact me if you know more)
  • pip-tools with separate development-time dependencies
  • Custom user model
  • Whitenoise for effortless static files hosting
  • Sentry. Set SENTRY_DSN env var if you need it.

Optional next steps

You definetely should consider this steps after installation:

  • Install pytest-xdist if you plan to grow beyond 500 unittests
  • If you are into docker, check out this docker-compose.yml which is compatible with bundled dockerfile

Installation

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

FAQ

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

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

About

My personal (very) opinionated django template

License:MIT License


Languages

Language:Python 89.3%Language:Dockerfile 6.5%Language:Shell 3.5%Language:Makefile 0.7%