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

Add app_name to rest_framework.urls. #3714

Merged
merged 1 commit into from Dec 8, 2015
Merged

Conversation

knbk
Copy link
Contributor

@knbk knbk commented Dec 8, 2015

This allows users in Django 1.9+ to include the authentication urls
without specifying the namespace, as in:

urlpatterns = [
    ...
    url(r'^auth/', include('rest_framework.urls'))
]

The urls will still be namespaced, but will use the namespace set by the app_name.

This allows users in Django 1.9+ to include the authentication urls
without specifying the namespace, as in:

    urlpatterns = [
        ...
        url(r'^auth/', include('rest_framework.urls'))
    ]
@xordoquy
Copy link
Collaborator

xordoquy commented Dec 8, 2015

Including Django doc reference: https://docs.djangoproject.com/en/1.9/topics/http/urls/#id4

@xordoquy xordoquy added this to the 3.3.2 Release milestone Dec 8, 2015
xordoquy added a commit that referenced this issue Dec 8, 2015
Add app_name to rest_framework.urls.
@xordoquy xordoquy merged commit e831753 into encode:master Dec 8, 2015
3 checks passed
@xordoquy
Copy link
Collaborator

xordoquy commented Dec 8, 2015

Thanks for the PR !

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

Successfully merging this pull request may close these issues.

None yet

2 participants