from django.conf.urls import url
from docs.views import DocsRootView, serve_docs

app_name = 'docs'

urlpatterns = [
    url(r'^$', DocsRootView.as_view(permanent=True), name='docs_root'),
    url(r'^(?P<path>.*)$', views.serve_docs, name='docs_files'),
]

from django.conf.urls import url
from docs.views import DocsRootView, serve_docs

app_name = 'docs'

urlpatterns = [
    url(r'^$', DocsRootView.as_view(permanent=True), name='docs_root'),
    url(r'^(?P<path>.*)$', serve_docs, name='docs_files'),
]

Update urls.py