django-rest-framework-docs
django-rest-framework-docs copied to clipboard
generate wrong data-path (API urls)
I have made the rule in the url.py url(r'^docs/', include('rest_framework_docs.urls', namespace='docs')),
and i can server the doc app but all links are wrong:
/docs/api/notes/uid/add but it should be /api/notes/uid/add
the rest is working great. Thank you for your good work.
django 1.10.5 drf 3.5.3 drf docs 0.0.11
Don't you have other codes on above lines?
@xncbf This is actually an issue. I will paste a code snippet here to highlight this.
url(r'^api/', include(api_urls)),
and api_urls
can be a list of urls. In this case, the DRF Docs doesn't detects the api/
prefix
Also experiencing this.