django-rest-framework-docs
django-rest-framework-docs copied to clipboard
Not compatible with Django 1.10 ImportError: cannot import name patterns
Since the patterns are removed from Django 1.10 it raises the following error with this version:
File "/usr/local/lib/python2.7/dist-packages/rest_framework_docs/urls.py", line 1, in <module>
from django.conf.urls import patterns, include, url
ImportError: cannot import name patterns
please use https://github.com/marcgibbons/django-rest-swagger
Try drfdocs instead of django-rest-framework-docs Install using pip:
pip install drfdocs
it stands for django rest framework docs Add 'rest_framework_docs' to your INSTALLED_APPS setting: INSTALLED_APPS = ( 'rest_framework_docs', ) Finally include the rest_framework_docs urls in your urls.py: urlpatterns = [ url(r'^docs/', include('rest_framework_docs.urls')), ]