from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth import views as auth_views


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^account/login/$', auth_views.login, name='login'),
    url(r'^account/password_reset/$', auth_views.password_reset, name='password_reset'),
    url(r'^account/password_reset/done/$', auth_views.password_reset_done, name='password_reset_done'),

]

from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.conf.urls import url
from views.index_view import index
from views.login_view import login_view

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^index/', index, name='index'),
    url(r'^account/login/$', login_view, name='login'),
    url(r'^account/password_reset/$', auth_views.password_reset,
                                      name='password_reset'),
    url(r'^account/password_reset/done/$', auth_views.password_reset_done,
                                           name='password_reset_done'),

]

Change view for login url. Add url for index page
Change view for login url. Add url for index page

- from django.conf.urls import url
  from django.contrib import admin
  from django.contrib.auth import views as auth_views
- 
+ from django.conf.urls import url
+ from views.index_view import index
+ from views.login_view import login_view
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
+     url(r'^index/', index, name='index'),
-     url(r'^account/login/$', auth_views.login, name='login'),
+     url(r'^account/login/$', login_view, name='login'),
-     url(r'^account/password_reset/$', auth_views.password_reset, name='password_reset'),
+     url(r'^account/password_reset/$', auth_views.password_reset,
+                                       name='password_reset'),
-     url(r'^account/password_reset/done/$', auth_views.password_reset_done, name='password_reset_done'),
+     url(r'^account/password_reset/done/$', auth_views.password_reset_done,
+                                            name='password_reset_done'),
  
  ]
  
Change view for login url. Add url for index page
## Code Before:
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth import views as auth_views


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^account/login/$', auth_views.login, name='login'),
    url(r'^account/password_reset/$', auth_views.password_reset, name='password_reset'),
    url(r'^account/password_reset/done/$', auth_views.password_reset_done, name='password_reset_done'),

]

## Instruction:
Change view for login url. Add url for index page
## Code After:
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.conf.urls import url
from views.index_view import index
from views.login_view import login_view

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^index/', index, name='index'),
    url(r'^account/login/$', login_view, name='login'),
    url(r'^account/password_reset/$', auth_views.password_reset,
                                      name='password_reset'),
    url(r'^account/password_reset/done/$', auth_views.password_reset_done,
                                           name='password_reset_done'),

]
