Skip to content

Is it possible to add a prefix or url_prefix argument to SimpleRouter or BaseRouter like Flask Blueprint's url_prefix argument #9575

Discussion options

You must be logged in to vote

To answer your question:

Is it possible to add a prefix or url_prefix argument to SimpleRouter or BaseRouter like Flask Blueprint's url_prefix argument?

I think the answer will be no. I'm not a maintainer, but DRF is unlikely to accept this kind of requests, as there is a good way of handling this case:

At this point in its lifespan we consider Django REST framework to be feature-complete. We focus on pull requests that track the continued development of Django versions, and generally do not accept new features or code formatting changes.

https://www.django-rest-framework.org/community/contributing/

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ryomahan
Comment options

@browniebroke
Comment options

Answer selected by ryomahan
@ryomahan
Comment options

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