Commit f6e510de authored by Alliyah Marcelo's avatar Alliyah Marcelo

Modified urls.py to add necessary urls for Forum app pages.

parent d1ab89bb
from django.urls import path from django.urls import path
from .views import index from .views import (forum, ForumPostDetailView,
ForumPostCreateView, ForumPostUpdateView)
urlpatterns = [ urlpatterns = [
path('', index, name='index'), path('forum/', forum, name='forum'),
path('forumposts/<int:pk>/details/',
ForumPostDetailView.as_view(),
name='forumpost-details'),
path('forumposts/add/',
ForumPostCreateView.as_view(),
name='forumpost-create'),
path('forumposts/<int:pk>/edit/',
ForumPostUpdateView.as_view(),
name='forumpost-update'),
] ]
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