This commit is contained in:
2025-04-22 21:08:24 +09:00
parent a6bf345dff
commit 8c07b7d16d
6 changed files with 64 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# blog/urls.py
from django.urls import path
from .views import PostListCreateView
from .views import PostListView, PostListCreateView
urlpatterns = [
path('posts/', PostListView.as_view(), name='post-list'),
path('create/', PostListCreateView.as_view(), name='post-list-create'),
]