Removed app_name warning from django.conf.urls.include()

This commit is contained in:
iamsobanjaved
2020-01-14 17:08:37 +05:00
committed by Aarif
parent 209364ece3
commit 38493d5092
5 changed files with 50 additions and 36 deletions

View File

@@ -55,7 +55,7 @@ class OAuth2AuthenticationDebug(authentication.OAuth2AuthenticationAllowInactive
urlpatterns = [
url(r'^oauth2/', include('provider.oauth2.urls', namespace='oauth2')),
url(r'^oauth2/', include(('provider.oauth2.urls', 'oauth2'), namespace='oauth2')),
url(
r'^oauth2-test/$',
MockView.as_view(authentication_classes=[authentication.OAuth2AuthenticationAllowInactiveUser])