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

Fix view name #278

Merged
merged 2 commits into from
Apr 30, 2018
Merged

Fix view name #278

merged 2 commits into from
Apr 30, 2018

Conversation

drppi44
Copy link
Contributor

@drppi44 drppi44 commented Apr 24, 2018

Default resolver doesn't work with FORCE_SCRIPT_NAME used. This way view_name is None.
like: excample.com/backend/is-authenticated/
WSGIReqeust variable called path_info contains url without prefix.
https://docs.djangoproject.com/en/2.0/ref/request-response/#django.http.HttpRequest.path_info

@albertyw albertyw self-requested a review April 30, 2018 08:20
@albertyw albertyw merged commit 6b1b202 into jazzband:master Apr 30, 2018
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

Successfully merging this pull request may close these issues.

2 participants