Skip to content

Instantly share code, notes, and snippets.

@john-patrik
Last active December 14, 2015 20:09
Show Gist options
  • Save john-patrik/5141816 to your computer and use it in GitHub Desktop.
Save john-patrik/5141816 to your computer and use it in GitHub Desktop.
Django rest-framework

App config for the django-rest-framework

settings.py

STATIC_ROOT = os.path.join(ROOTDIR,'static')
STATIC_URL = '/static/'

INSTALLED_APPS = (
  ...
  'django.contrib.staticfiles',
  ...
  'rest_framework',
)
$ python manage.py collectstatic

Optional packages

$ pip install yolk
$ pip install ipython

Then use http query '?format=api' to browse the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment