site_tps/settings/urls.py

47 lines
1.1 KiB
Python
Raw Normal View History

2018-01-30 20:39:44 +00:00
from django.urls import path
2018-03-11 22:25:59 +00:00
from .views import SettingsView, EditSiteSettingsView, degrade_user, promote_user, CreateStaticPageView, StaticPageView, DeleteStaticPageView, EditStaticPageView
2018-01-30 20:39:44 +00:00
app_name = 'settings'
urlpatterns = [
path(
'',
SettingsView.as_view(),
name='index'
),
path(
'site_settings',
EditSiteSettingsView.as_view(),
name='site-settings'
),
2018-03-02 10:16:42 +00:00
path(
'degrade_user/<int:pk>',
degrade_user,
name='degrade-user',
),
path(
'promote_user',
promote_user,
name='promote-user',
2018-03-11 22:25:59 +00:00
),
path(
'static_page/new',
CreateStaticPageView.as_view(),
name='staticpage-new'
),
path(
'static_page/<int:pk>',
StaticPageView.as_view(),
name='staticpage'
),
path(
'static_page/<int:pk>/delete',
DeleteStaticPageView.as_view(),
name='staticpage-delete'
),
path(
'static_page/<int:pk>/edit',
EditStaticPageView.as_view(),
name='staticpage-edit'
2018-03-02 10:16:42 +00:00
)
2018-01-30 20:39:44 +00:00
]