Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
midterm_OhMyBash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nheo Samson
midterm_OhMyBash
Commits
f6e510de
Commit
f6e510de
authored
May 13, 2023
by
Alliyah Marcelo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified urls.py to add necessary urls for Forum app pages.
parent
d1ab89bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
urls.py
widget_OhMyBash/forum/urls.py
+12
-2
No files found.
widget_OhMyBash/forum/urls.py
View file @
f6e510de
from
django.urls
import
path
from
.views
import
index
from
.views
import
(
forum
,
ForumPostDetailView
,
ForumPostCreateView
,
ForumPostUpdateView
)
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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment