duck-booking-tool/accounts/urls.py

25 lines
520 B
Python
Raw Normal View History

2015-01-12 15:51:54 +00:00
from django.conf.urls import patterns, url
from .views import RegistrationFormView
urlpatterns = patterns(
'',
url(
r'^register$',
RegistrationFormView.as_view(),
name = 'register'
),
2014-12-17 12:30:58 +00:00
url(
r'^login$',
'django.contrib.auth.views.login',
{'template_name': 'accounts/login.html'},
name = 'login'
),
url(
r'^logout$',
'django.contrib.auth.views.logout',
{'next_page': 'booking:list'},
name = 'logout'
),
2015-01-12 15:51:54 +00:00
)