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

Error, when URL contains / xml rendering fails #14

Open
Haaroon opened this issue Mar 31, 2016 · 2 comments
Open

Error, when URL contains / xml rendering fails #14

Haaroon opened this issue Mar 31, 2016 · 2 comments

Comments

@Haaroon
Copy link

Haaroon commented Mar 31, 2016

In django urls, when using routers as follows the code XML renders fine at the api root

router = routers.DefaultRouter() 
router.register(r'users', views.UserViewSet)
router.register(r'review', views.ReviewViewSet)

However when using routers which contain a / the render fails at the api root.

router = routers.DefaultRouter()
router.register(r'api/users', views.UserViewSet)
router.register(r'api/review', views.ReviewViewSet)

Is there any reasoning to why this happens?

@Haaroon
Copy link
Author

Haaroon commented Mar 31, 2016

@PhoenixVII had the same issue

@kyleobrien91
Copy link
Collaborator

@Haaroon - I'm sorry for the delayed response on this.

If you'd still like this looked at, please:

  • elaborate on 'failed at the api root' - what do you mean? How did it fail? 404 Not Found?
  • Provide some replication steps and outline the code in your viewsets

Thanks

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

2 participants