10 октября 2019
O
J E O E
А A А
urlpatterns = [
path(' ', views.PostList.as_view(), name='home'),
path('search/', views.SearchResultsView.as_view(), name='search_results'),
path('accounts/', include('django.contrib.auth.urls')),
path('registration/', views.register, name='registration'),
path('<slug:slug>', views.PostDetail.as_view(), name='post_detail'),
path('post/<str:slug>/comment/', views.add_comment_to_post,
name='add_comment_to_post'),
path('tag/<str:slug>', views.tag_detail, name='tag_detail_url'),
]