how to modify all urls to funnel through a preprocessor #8600
Unanswered
michaeloliveraz
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use the routers REST framework to modify my Django application such that all URls with the format /polls/admin/ or /polls/question are modified to /myprocessor/polls/admin and /myprocessor/polls/question.
I want myprocessor to have access to all requests as they flow through the system to the models. Myprocessor would do its thing, strip off the /myprocessor and forward the request to /polls/admin/ and /polls/question as usual.
It appears that the REST Framework routers.md suggests that is possible but no example of exactly what I want.
Beta Was this translation helpful? Give feedback.
All reactions