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
|
|
|
)
|