example_project_custom_group/articles/urls.py
raw| 1 | from django.urls import path |
| 2 | |
| 3 | from . import views |
| 4 | |
| 5 | app_name = "articles" |
| 6 | urlpatterns = [ |
| 7 | path("", views.ArticleListView.as_view(), name="list"), |
| 8 | path("~create", views.ArticleCreateView.as_view(), name="create"), |
| 9 | path("<slug:slug>", views.ArticleDetailView.as_view(), name="details"), |
| 10 | path("<slug:slug>/~update", views.ArticleUpdateView.as_view(), name="update"), |
| 11 | path("<slug:slug>/~delete", views.ArticleDeleteView.as_view(), name="delete"), |
| 12 | ] |