add dashboard app
- add new dashboard app providing dashboards for anonymous and logged in users - cleanup gnuviechadmin.urls: - import dashboard.urls and include dashboard_urls at URL root - import authentication urls and include them below /auth - remove generated commented code
This commit is contained in:
parent
8884b8b042
commit
8a29e4001c
7 changed files with 64 additions and 16 deletions
16
gnuviechadmin/dashboard/urls.py
Normal file
16
gnuviechadmin/dashboard/urls.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django.conf.urls import patterns, url
|
||||
|
||||
from .views import (
|
||||
IndexView,
|
||||
UserDashboardView,
|
||||
)
|
||||
|
||||
|
||||
urlpatterns = patterns(
|
||||
'',
|
||||
url(r'^$', IndexView.as_view(), name='dashboard'),
|
||||
url(r'^user/(?P<slug>[\w0-9@.+-_]+)/$',
|
||||
UserDashboardView.as_view(), name='customer_dashboard'),
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue