Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate wrong data-path (API urls) #156

Open
hexxter opened this issue Feb 15, 2017 · 3 comments
Open

generate wrong data-path (API urls) #156

hexxter opened this issue Feb 15, 2017 · 3 comments

Comments

@hexxter
Copy link

hexxter commented Feb 15, 2017

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

@xncbf
Copy link
Contributor

xncbf commented Feb 20, 2017

Don't you have other codes on above lines?

@iamhssingh
Copy link

@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

@ckcollab
Copy link

Also experiencing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants