from django.urls import path from . import views from .views import ( CreateCategory, ViewCategory, DeleteCategory, EditCategory, DeleteContent, ) app_name = 'content' urlpatterns = [ path( 'category/delete/', DeleteCategory.as_view(), name='category-delete' ), path( 'category/new/', CreateCategory.as_view(), name='category-new' ), path( 'category/', ViewCategory.as_view(), name='category', ), path( 'category//edit', EditCategory.as_view(), name='category-edit', ), path( 'new/', views.create_content, name='content-new', ), path( '/delete', DeleteContent.as_view(), name="content-delete", ), path( '/edit', views.edit_content, name="content-edit", ), ]