Commit dee303a4 authored by karin-kurusu's avatar karin-kurusu

Updated urls.py to have the appropriate URLs for each view

parent 6e60c621
from django.urls import path from django.urls import path
from .views import pageview, ForumpostDetailView, ForumpostCreateView, ForumpostUpdateView
from .views import pageview
urlpatterns = [ urlpatterns = [
path('', pageview, name='pageview') path('', pageview, name='pageview'),
path('forumposts/<int:pk>/details/', ForumpostDetailView.as_view(), name='forumpost-details'),
path('forumposts/add/', ForumpostCreateView.as_view(), name='forumpost-add'),
path('forumposts/<int:pk>/edit/', ForumpostUpdateView.as_view(), name='forumpost-edit'),
] ]
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