old_contents: from __future__ import absolute_import
  from django.conf.urls import url
  
  from . import views
  
  
  base_urlpatterns = [
      url(r'^authorize/$', views.AuthorizationView.as_view(), name="authorize"),
      url(r'^token/$', views.TokenView.as_view(), name="token"),
      url(r'^revoke_token/$', views.RevokeTokenView.as_view(), name="revoke-token"),
  ]
  
  
  management_urlpatterns = [
      # Application management views
      url(r'^applications/$', views.ApplicationList.as_view(), name="list"),
      url(r'^applications/register/$', views.ApplicationRegistration.as_view(), name="register"),
      url(r'^applications/(?P<pk>\d+)/$', views.ApplicationDetail.as_view(), name="detail"),
      url(r'^applications/(?P<pk>\d+)/delete/$', views.ApplicationDelete.as_view(), name="delete"),
      url(r'^applications/(?P<pk>\d+)/update/$', views.ApplicationUpdate.as_view(), name="update"),
      # Token management views
      url(r'^authorized_tokens/$', views.AuthorizedTokensListView.as_view(), name="authorized-token-list"),
      url(r'^authorized_tokens/(?P<pk>\d+)/delete/$', views.AuthorizedTokenDeleteView.as_view(),
          name="authorized-token-delete"),
  ]
  
  
  urlpatterns = base_urlpatterns + management_urlpatterns
  
new_contents: from __future__ import absolute_import
  from django.conf.urls import url
  
  from . import views
  
  
  app_name = 'oauth2_provider'
  
  
  base_urlpatterns = [
      url(r'^authorize/$', views.AuthorizationView.as_view(), name="authorize"),
      url(r'^token/$', views.TokenView.as_view(), name="token"),
      url(r'^revoke_token/$', views.RevokeTokenView.as_view(), name="revoke-token"),
  ]
  
  
  management_urlpatterns = [
      # Application management views
      url(r'^applications/$', views.ApplicationList.as_view(), name="list"),
      url(r'^applications/register/$', views.ApplicationRegistration.as_view(), name="register"),
      url(r'^applications/(?P<pk>\d+)/$', views.ApplicationDetail.as_view(), name="detail"),
      url(r'^applications/(?P<pk>\d+)/delete/$', views.ApplicationDelete.as_view(), name="delete"),
      url(r'^applications/(?P<pk>\d+)/update/$', views.ApplicationUpdate.as_view(), name="update"),
      # Token management views
      url(r'^authorized_tokens/$', views.AuthorizedTokensListView.as_view(), name="authorized-token-list"),
      url(r'^authorized_tokens/(?P<pk>\d+)/delete/$', views.AuthorizedTokenDeleteView.as_view(),
          name="authorized-token-delete"),
  ]
  
  
  urlpatterns = base_urlpatterns + management_urlpatterns
  
subject: Add app_name to urls.py