2018-01-24 10:33:05 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
2018-01-30 18:54:01 +00:00
|
|
|
from .views import (
|
|
|
|
ContentCategoryList,
|
|
|
|
CreateCategory,
|
|
|
|
)
|
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(
|
|
|
|
'category/<int:category_id>/',
|
|
|
|
ContentCategoryList.as_view(),
|
|
|
|
name='category-list'
|
|
|
|
),
|
2018-01-30 18:54:01 +00:00
|
|
|
path(
|
|
|
|
'category/new/',
|
|
|
|
CreateCategory.as_view(),
|
|
|
|
name='category-new'
|
|
|
|
),
|
2018-01-24 10:33:05 +00:00
|
|
|
]
|