-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
166 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
from django.conf.urls import patterns, url | ||
from django.conf.urls import url | ||
from django.contrib.auth.views import login, logout, password_reset, password_reset_done, \ | ||
password_reset_confirm, password_reset_complete | ||
|
||
urlpatterns = patterns( | ||
'', | ||
urlpatterns = ( | ||
# login and logout url | ||
url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login'), | ||
# or use 'django.contrib.auth.views.logout' with template 'logout.html | ||
url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name='logout'), | ||
url(r'^login/$', login, {'template_name': 'login.html'}, name='login'), | ||
# or use logout with template 'logout.html' | ||
url(r'^logout/$', logout, name='logout'), | ||
|
||
# password reset urls | ||
url(r'^password_reset/$', 'django.contrib.auth.views.password_reset', | ||
{'template_name': 'password_reset.html'}, name='password_reset'), | ||
url(r'^password_reset_done/$', 'django.contrib.auth.views.password_reset_done', | ||
url(r'^password_reset/$', password_reset, {'template_name': 'password_reset.html'}, | ||
name='password_reset'), | ||
url(r'^password_reset_done/$', password_reset_done, | ||
{'template_name': 'password_reset_done.html'}, name='password_reset_done'), | ||
url(r'^password_reset_confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$', | ||
'django.contrib.auth.views.password_reset_confirm', | ||
{'template_name': 'password_reset_confirm.html'}, name='password_reset_confirm'), | ||
url(r'^password_reset_complete/$', 'django.contrib.auth.views.password_reset_complete', | ||
password_reset_confirm, {'template_name': 'password_reset_confirm.html'}, | ||
name='password_reset_confirm'), | ||
url(r'^password_reset_complete/$', password_reset_complete, | ||
{'template_name': 'password_reset_complete.html'}, name='password_reset_complete'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.