A django template to start a DRF project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project_name
.gitignore
LICENSE.txt
README.md

README.md

django-drf-template

Requirements Status

Project template for Django 1.7 + Django REST framework containing things I use and find useful.
Part of it is based on Two Scoops of Django template.

Features

It contains the following things:

There are also goodies on dev and test environments:

Install

You will need Postgres installed and the following ones (for ubuntu/debian, for others systems look in your package managers).

$ sudo apt-get install libpq-dev python-dev libffi-dev

Create your virtualenv (examples will use virtualenvwrapper), I will use the name myproject but use your own name.

$ mkdir myproject && cd myproject
$ mkvrirtualenv myproject
$ pip install django
$ django-admin.py startproject myproject --template=https://github.com/Keats/django-drf-template/archive/master.zip
$ cd myproject
$ pip install -r requirements/local.txt
$ python myproject/manage.py migrate

If you want, you can also add a pre-commit flake8 hook to ensure that commit respects it.

$ flake8 --install-hook

By default it will not stop commits because of warning, a quick look at .git/hooks/pre-commit shows that putting an environment variable of FLAKE8_STRICT will stop them.

And with all that, you should be almost good to go. There are a few hardcoded temporary settings that you will want to replace, look for the string 'Ann Onymous' and you should find them.