first commit
This commit is contained in:
10
blog/urls.py
Normal file
10
blog/urls.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.urls import path
|
||||
|
||||
from blog.views import CategoryList, CategoryDetail, PostDetail, PostList
|
||||
|
||||
urlpatterns = [
|
||||
path('categories/', CategoryList.as_view(), name='categories.list'),
|
||||
path('categories/<slug:slug>/', CategoryDetail.as_view(), name='categories.details'),
|
||||
path('post/', PostList.as_view(), name='post.list'),
|
||||
path('post/<slug:slug>/', PostDetail.as_view(), name='post.details'),
|
||||
]
|
||||
Reference in New Issue
Block a user