Commit b4a612b9 authored by Stephanie Tullao's avatar Stephanie Tullao

Added posts/add to urlpatterns

parent c3d08467
from django.urls import path from django.urls import path
from .views import post_list_view, post_detail_view from .views import post_list_view, post_detail_view, post_create_view
urlpatterns = [ urlpatterns = [
path('', post_list_view, name='post-list'), path('', post_list_view.as_view(), name='post-list'),
path('posts/<int:post_id>/details', post_detail_view, name='post-details'), path('posts/<int:post_id>/details', post_detail_view, name='post-details'),
path('posts/add', post_create_view.as_view(), name='post-create')
] ]
app_name = 'forum' app_name = 'forum'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment