from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = [
    url(r'^admin/', admin.site.urls),

    # django-oauth-toolkit
    url(r'^oauth2/', include('oauth2_provider.urls', namespace='oauth2_provider')),
    url(r'^', include('apps.authentication.urls', namespace='microauth_authentication')),
    url(r'^api/', include('apps.api.urls', namespace='microauth_api')),
]

urlpatterns += staticfiles_urlpatterns()

from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = [
    url(r'^admin/', admin.site.urls),

    # django-oauth-toolkit
    url(r'^oauth2/', include('oauth2_provider.urls', namespace='oauth2_provider')),
    url(r'^', include('apps.authentication.urls', namespace='microauth_authentication')),
    url(r'^api/', include('apps.api.urls', namespace='microauth_api')),
    url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'admin/login.html'}),

]

urlpatterns += staticfiles_urlpatterns()

Add a missing route leading to the login page.
Add a missing route leading to the login page.

  from django.conf.urls import include, url
  from django.contrib import admin
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
  
      # django-oauth-toolkit
      url(r'^oauth2/', include('oauth2_provider.urls', namespace='oauth2_provider')),
      url(r'^', include('apps.authentication.urls', namespace='microauth_authentication')),
      url(r'^api/', include('apps.api.urls', namespace='microauth_api')),
+     url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'admin/login.html'}),
+ 
  ]
  
  urlpatterns += staticfiles_urlpatterns()
  
Add a missing route leading to the login page.
## Code Before:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = [
    url(r'^admin/', admin.site.urls),

    # django-oauth-toolkit
    url(r'^oauth2/', include('oauth2_provider.urls', namespace='oauth2_provider')),
    url(r'^', include('apps.authentication.urls', namespace='microauth_authentication')),
    url(r'^api/', include('apps.api.urls', namespace='microauth_api')),
]

urlpatterns += staticfiles_urlpatterns()

## Instruction:
Add a missing route leading to the login page.
## Code After:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

urlpatterns = [
    url(r'^admin/', admin.site.urls),

    # django-oauth-toolkit
    url(r'^oauth2/', include('oauth2_provider.urls', namespace='oauth2_provider')),
    url(r'^', include('apps.authentication.urls', namespace='microauth_authentication')),
    url(r'^api/', include('apps.api.urls', namespace='microauth_api')),
    url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'admin/login.html'}),

]

urlpatterns += staticfiles_urlpatterns()
