site_tps/settings/urls.py

28 lines
538 B
Python
Raw Normal View History

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'
),
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
]