Add app_name to rest_framework.urls. by knbk · Pull Request #3714 · encode/django-rest-framework (original) (raw)
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
.