2018-01-30 20:39:44 +00:00
|
|
|
from django.urls import path
|
2018-03-02 10:16:42 +00:00
|
|
|
from .views import SettingsView, EditSiteSettingsView, degrade_user, promote_user
|
2018-01-30 20:39:44 +00:00
|
|
|
|
|
|
|
app_name = 'settings'
|
|
|
|
urlpatterns = [
|
|
|
|
path(
|
|
|
|
'',
|
|
|
|
SettingsView.as_view(),
|
|
|
|
name='index'
|
|
|
|
),
|
2018-02-22 19:55:10 +00:00
|
|
|
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-01-30 20:39:44 +00:00
|
|
|
]
|