Jan Dittberner
2bc278ae92
- add LogoutView to dashboard app - define logout URL pattern - only use login view from django.contrib.auth.views instead of including all auth URLs - change base template to support login/logout - add template dashboard/user_dashboard.html
19 lines
446 B
Python
19 lines
446 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
from .views import (
|
|
IndexView,
|
|
LogoutView,
|
|
UserDashboardView,
|
|
)
|
|
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^$', IndexView.as_view(), name='dashboard'),
|
|
url(r'^user/(?P<slug>[\w0-9@.+-_]+)/$',
|
|
UserDashboardView.as_view(), name='customer_dashboard'),
|
|
url(r'^logout/',
|
|
LogoutView.as_view(), name='logout'),
|
|
)
|