site_tps/content/urls.py

33 lines
625 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-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-01-24 10:33:05 +00:00
]