urls.py 702 B

123456789101112131415
  1. from django.urls import path
  2. from . import views
  3. app_name = 'article'
  4. urlpatterns = [
  5. path('article_list/', views.article_list, name='article_list'),
  6. path('article_list_call/', views.callajax, name='article_list_call'),
  7. path('', views.article_list, name='test'),
  8. path('article_detail/<int:id>/', views.article_detail, name='article_detail'),
  9. path('article_create/', views.article_create, name='article_create'),
  10. # path('article_delete/<int:id>/', views.article_delete, name='article_delete'),
  11. path('article_safe_delete/<int:id>/', views.article_safe_delete, name='article_safe_delete'),
  12. path('article_update/<int:id>/', views.article_update, name='article_update'),
  13. ]