10 lines
254 B
Python
10 lines
254 B
Python
# blog/urls.py
|
|
|
|
from django.urls import path
|
|
from .views import PostListView, PostListCreateView
|
|
|
|
urlpatterns = [
|
|
path('posts/', PostListView.as_view(), name='post-list'),
|
|
path('create/', PostListCreateView.as_view(), name='post-list-create'),
|
|
]
|