Using pip:
pip install django-api-docs
Go to https://github.com/dstegelman/django-interactive-api-docs if you need to download a package or clone the repo.
Open settings.py and add api_docs to your INSTALLED_APPS:
INSTALLED_APPS = (
'api_docs',
'south',
)
Open settings.py and add 'api_docs.middleware.ContentTypeMiddleware' to middleware:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'api_docs.middleware.ContentTypeMiddleware',
)
Add URL-patterns:
urlpatterns = patterns('',
(r'^docs/', include('api_docs.urls')),
)
Run collect static to fetch the files for production, or copy the files out of api_docs/static to your static directory.