mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-29 11:44:28 +01:00
See: https://docs.djangoproject.com/en/stable/releases/2.0/ The only required changes are - as reported in #1466 - the addition of `app_name` in `urls.py` for URL namespaces.
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
"""Core urls."""
|
|
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "core"
|
|
|
|
urlpatterns = [
|
|
path('', views.RootDispatchView.as_view(), name="root"),
|
|
path('dashboard/', views.DashboardView.as_view(), name="dashboard"),
|
|
|
|
path('accounts/login/', views.dologin, name="login"),
|
|
path('accounts/logout/', views.dologout, name="logout"),
|
|
|
|
path('core/', views.viewsettings, name="index"),
|
|
path('core/parameters/', views.parameters, name="parameters"),
|
|
path('core/info/', views.information, name="information"),
|
|
path('core/logs/', views.logs, name="log_list"),
|
|
path('core/logs/page/', views.logs_page, name="logs_page"),
|
|
path('core/top_notifications/check/',
|
|
views.check_top_notifications,
|
|
name="top_notifications_check"),
|
|
|
|
path('user/', views.index, name="user_index"),
|
|
path('user/preferences/', views.preferences,
|
|
name="user_preferences"),
|
|
path('user/profile/', views.profile, name="user_profile"),
|
|
path('user/api/', views.api_access, name="user_api_access"),
|
|
]
|