Adjusted Urls

parent d0f11a76
...@@ -4,10 +4,10 @@ from .views import (ForumViews, ForumPostDetails, ...@@ -4,10 +4,10 @@ from .views import (ForumViews, ForumPostDetails,
ForumPostNew, ForumPostEdit) ForumPostNew, ForumPostEdit)
urlpatterns = [ urlpatterns = [
path('forum/', views.ForumViews, name='forum'), path('', views.ForumViews, name='forum'),
path('forum/forumposts/<int:pk>/details/', ForumPostDetails.as_view(), name="forumpostdetails"), path('forumposts/<int:pk>/details/', ForumPostDetails.as_view(), name="forumpostdetails"),
path('forum/forumposts/add/', ForumPostNew.as_view(), name='forumpostnew'), path('forumposts/add/', ForumPostNew.as_view(), name='forumpostnew'),
path('forum/forumposts/<int:pk>/edit/', ForumPostEdit.as_view(), name = 'forumpostedit'), path('forumposts/<int:pk>/edit/', ForumPostEdit.as_view(), name = 'forumpostedit'),
] ]
app_name = "forum" app_name = "forum"
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