site_tps/content/urls.py

52 lines
985 B
Python
Raw Normal View History

2018-01-24 10:33:05 +00:00
from django.urls import path
from .views import (
ContentCategoryList,
CreateCategory,
2018-01-30 21:47:47 +00:00
DeleteCategory,
2018-01-30 22:04:06 +00:00
EditCategory,
2018-02-28 20:25:44 +00:00
CreateContent,
DeleteContent,
EditContent,
)
2018-01-24 10:33:05 +00:00
2018-01-24 10:44:54 +00:00
app_name = 'content'
2018-01-24 10:33:05 +00:00
urlpatterns = [
path(
2018-01-30 22:07:08 +00:00
'category/<int:pk>/',
2018-01-24 10:33:05 +00:00
ContentCategoryList.as_view(),
name='category-list'
),
2018-01-30 21:47:47 +00:00
path(
'category/delete/<int:pk>',
DeleteCategory.as_view(),
name='category-delete'
),
path(
'category/new/',
CreateCategory.as_view(),
name='category-new'
),
2018-01-30 22:04:06 +00:00
path(
'category/edit/<int:pk>',
EditCategory.as_view(),
name='category-edit',
2018-02-28 20:25:44 +00:00
),
path(
'new',
CreateContent.as_view(),
name='content-new',
),
path(
'<int:pk>/delete',
DeleteContent.as_view(),
name="content-delete",
),
path(
'<int:pk>/edit',
EditContent.as_view(),
name="content-edit",
),
2018-01-24 10:33:05 +00:00
]