duck-booking-tool/accounts/urls.py

29 lines
554 B
Python
Raw Normal View History

2015-10-20 14:26:25 +00:00
# -*- coding: utf-8
"""
URL patterns for the accounts module
"""
from django.conf.urls import url
2015-01-12 15:51:54 +00:00
from .views import RegistrationFormView
2015-10-20 14:26:25 +00:00
urlpatterns = [
2015-01-12 15:51:54 +00:00
url(
r'^register$',
RegistrationFormView.as_view(),
2015-10-20 14:26:25 +00:00
name='register'
2015-01-12 15:51:54 +00:00
),
2014-12-17 12:30:58 +00:00
url(
r'^login$',
'django.contrib.auth.views.login',
{'template_name': 'accounts/login.html'},
2015-10-20 14:26:25 +00:00
name='login'
2014-12-17 12:30:58 +00:00
),
url(
r'^logout$',
'django.contrib.auth.views.logout',
{'next_page': 'booking:list'},
2015-10-20 14:26:25 +00:00
name='logout'
2014-12-17 12:30:58 +00:00
),
2015-10-20 14:26:25 +00:00
]