2018-01-24 11:33:05 +01:00
|
|
|
from django.urls import path
|
|
|
|
|
2018-03-09 13:18:03 +01:00
|
|
|
from . import views
|
|
|
|
|
2018-01-30 19:54:01 +01:00
|
|
|
from .views import (
|
|
|
|
CreateCategory,
|
2018-03-09 11:44:49 +01:00
|
|
|
ViewCategory,
|
2018-01-30 22:47:47 +01:00
|
|
|
DeleteCategory,
|
2018-01-30 23:04:06 +01:00
|
|
|
EditCategory,
|
2018-02-28 21:25:44 +01:00
|
|
|
DeleteContent,
|
2018-01-30 19:54:01 +01:00
|
|
|
)
|
2018-01-24 11:33:05 +01:00
|
|
|
|
2018-01-24 11:44:54 +01:00
|
|
|
app_name = 'content'
|
2018-01-24 11:33:05 +01:00
|
|
|
urlpatterns = [
|
2018-01-30 22:47:47 +01:00
|
|
|
path(
|
|
|
|
'category/delete/<int:pk>',
|
|
|
|
DeleteCategory.as_view(),
|
|
|
|
name='category-delete'
|
|
|
|
),
|
2018-01-30 19:54:01 +01:00
|
|
|
path(
|
|
|
|
'category/new/',
|
|
|
|
CreateCategory.as_view(),
|
|
|
|
name='category-new'
|
|
|
|
),
|
2018-01-30 23:04:06 +01:00
|
|
|
path(
|
2018-03-09 11:44:49 +01:00
|
|
|
'category/<int:pk>',
|
|
|
|
ViewCategory.as_view(),
|
|
|
|
name='category',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'category/<int:pk>/edit',
|
2018-01-30 23:04:06 +01:00
|
|
|
EditCategory.as_view(),
|
|
|
|
name='category-edit',
|
2018-02-28 21:25:44 +01:00
|
|
|
),
|
|
|
|
path(
|
2018-03-09 13:18:03 +01:00
|
|
|
'new/<int:school_pk>',
|
|
|
|
views.create_content,
|
2018-02-28 21:25:44 +01:00
|
|
|
name='content-new',
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'<int:pk>/delete',
|
|
|
|
DeleteContent.as_view(),
|
|
|
|
name="content-delete",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'<int:pk>/edit',
|
2018-03-10 09:28:50 +01:00
|
|
|
views.edit_content,
|
2018-02-28 21:25:44 +01:00
|
|
|
name="content-edit",
|
|
|
|
),
|
|
|
|
|
2018-01-24 11:33:05 +01:00
|
|
|
]
|