diff --git a/users/urls.py b/users/urls.py index 9911e1f..2b0bb37 100644 --- a/users/urls.py +++ b/users/urls.py @@ -7,9 +7,9 @@ from users.views import CreateUser app_name = 'users' urlpatterns = [ # CREATE USER - url('^create/$', CreateUser.as_view(), name='create_user'), + url(r'^create/$', CreateUser.as_view(), name='create_user'), # LOGIN - url('^login/$', + url(r'^login/$', auth_views.login, {'template_name': 'users/login.html', 'extra_context': { @@ -20,13 +20,13 @@ urlpatterns = [ name='login', ), # LOGOUT - url('^logout/$', + url(r'^logout/$', auth_views.logout, {'next_page': reverse_lazy('shared:home'), }, name='logout',), # PASSWORD_CHANGE - url('^password_change/$', + url(r'^password_change/$', auth_views.password_change, {'template_name': 'users/change_pass.html', 'post_change_redirect': reverse_lazy('shared:home'), @@ -38,7 +38,7 @@ urlpatterns = [ name='password_change'), # url('^password_change/done/$', name='password_change_done'), # RESET PASSWORD - url('^password_reset/$', + url(r'^password_reset/$', auth_views.password_reset, {'template_name': 'users/password_reset.html', 'email_template_name': 'email_password_reset.html', @@ -51,11 +51,11 @@ urlpatterns = [ }, name='password_reset'), # PASS RESET DONE - url('^password_reset/done/$', + url(r'^password_reset/done/$', Home.as_view(), name='password_reset_done'), # PASS RESET CONFIRM - url('^reset/(?P[0-9A-Za-z_\-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', + url(r'^reset/(?P[0-9A-Za-z_\-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', auth_views.password_reset_confirm, { 'template_name': 'users/user_form.html', @@ -67,7 +67,7 @@ urlpatterns = [ }, name='password_reset_confirm'), # PASS RESET COMPLETE - url('^reset/done/$', + url(r'^reset/done/$', Home.as_view(), name='password_reset_complete'), ]