update
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
# blog/urls.py
|
||||
|
||||
from django.urls import path
|
||||
from .views import PostListView, PostListCreateView
|
||||
from .views import PostListView, PostListCreateView, PostDetailView
|
||||
|
||||
urlpatterns = [
|
||||
path('posts/', PostListView.as_view(), name='post-list'),
|
||||
path('create/', PostListCreateView.as_view(), name='post-list-create'),
|
||||
path('posts/<int:pk>/', PostDetailView.as_view(), name='post-detail'),
|
||||
]
|
||||
|
Reference in New Issue
Block a user