2017-08-13 21:06:11 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
2017-08-11 18:32:02 +00:00
|
|
|
|
2017-08-13 13:44:48 +00:00
|
|
|
from django.conf.urls import url, include
|
2017-08-11 18:32:02 +00:00
|
|
|
from django.contrib import admin
|
2017-11-09 12:24:32 +00:00
|
|
|
from django.contrib.auth import views as auth_views
|
|
|
|
|
|
|
|
from . import views
|
2017-08-11 18:32:02 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
url(r'^admin/', admin.site.urls),
|
2017-08-16 16:46:26 +00:00
|
|
|
|
2017-11-09 12:24:32 +00:00
|
|
|
url(r'^login/$', auth_views.LoginView.as_view(), name='login'),
|
|
|
|
url(r'^logout/$', auth_views.LogoutView.as_view(), name='logout'),
|
|
|
|
url('^password_reset/$', auth_views.PasswordResetView.as_view(),
|
2017-08-16 16:46:26 +00:00
|
|
|
name='password_reset',),
|
|
|
|
|
2017-11-09 12:24:32 +00:00
|
|
|
url(r'^$', views.RootRouter.as_view(), name='root-router'),
|
|
|
|
url(r'^welcome/$', views.Welcome.as_view(), name='welcome'),
|
2017-11-11 22:27:42 +00:00
|
|
|
url(r'^user/settings/$', views.UserSettings.as_view(),
|
|
|
|
name='user-settings'),
|
2017-11-09 12:24:32 +00:00
|
|
|
|
2017-08-17 16:17:51 +00:00
|
|
|
url(r'', include('api.urls', namespace='api')),
|
2017-08-15 19:14:03 +00:00
|
|
|
url(r'', include('core.urls')),
|
2017-08-18 13:02:31 +00:00
|
|
|
url(r'', include('dashboard.urls')),
|
2017-08-24 19:40:11 +00:00
|
|
|
url(r'', include('reports.urls', namespace='reports')),
|
2017-08-11 18:32:02 +00:00
|
|
|
]
|