django-simplecms/cms/urls.py

18 wiersze
821 B
Python
Czysty Zwykły widok Historia

2019-03-27 15:49:14 +00:00
from django.urls import path
2019-08-23 15:19:40 +00:00
from .views import PageView, UpdatePage, CreatePage, UpdateSection, CreateSection, CreateSubSection
2019-03-27 15:49:14 +00:00
app_name = 'cms'
urlpatterns = [
path('updatepage/', UpdatePage.as_view(), {'slug': ''}, name='updatehomepage'),
path('updatepage/<int:pk>/', UpdatePage.as_view(), name='updatepage'),
path('updatesection/<int:pk>/', UpdateSection.as_view(), name='updatesection'),
path('createpage/', CreatePage.as_view(), name='createpage'),
path('createsection/<int:pk>', CreateSection.as_view(), name='createsection'),
path('createsubsection/<int:pk>/', CreateSubSection.as_view(), name='createsubsection'),
# Feel free to copy the following into your root URL conf!
path('', PageView.as_view(), name='page'),
2019-03-27 15:49:14 +00:00
path('<slug:slug>/', PageView.as_view(), name='page'),
]