Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.urls import path,re_path,include
- from . import views
- app_name = 'courses'
- urlpatterns = [
- re_path(r'^$', views.ListCourses.as_view(), name='list'),
- path('new/', views.CreateCourse.as_view(), name='new'),
- path('<int:pk>/', views.SingleCourse.as_view(), name='show'),
- path('<int:pk>/edit/', views.UpdateCourse.as_view(), name='edit'),
- path('<int:pk>/delete/', views.DeleteCourse.as_view(), name='delete'),
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement