Commit b115622d authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Fixed syntax errors in the urlpatterns

parent 403b1c14
...@@ -3,9 +3,10 @@ from . import views ...@@ -3,9 +3,10 @@ from . import views
# url for forum # url for forum
urlpatterns = [ urlpatterns = [
path("", views.forum_view, name="forum"), path('', views.forum_view, name="forumposts"),
path('add', views.ForumPostCreateView.as_view(), name="forumpost_add" ), path('forumposts/add', views.ForumPostCreateView.as_view(), name="forumpost_add" ),
path('<int:pk>/details', views.ForumPostDetailView.as_view(), name='forumpost_details'), path('forumposts/<int:pk>/details', views.ForumPostDetailView.as_view(), name='forumpost_details'),
path('<int:pk>/edit', views.ForumPostUpdateView.as_view(), name='forumpost_edit'), path('forumposts/<int:pk>/edit', views.ForumPostUpdateView.as_view(), name='forumpost_edit'),
]
] app_name = "forum"
\ No newline at end of file \ 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