Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_casanatics
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
John Aidan Vincent M. Ng
midterm_casanatics
Commits
07460b50
Commit
07460b50
authored
May 12, 2023
by
justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: minor change in forum urls (forumpost to forumposts)
parent
f050c8b4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
db.sqlite3
widget_casanatics/db.sqlite3
+0
-0
urls.cpython-310.pyc
widget_casanatics/forum/__pycache__/urls.cpython-310.pyc
+0
-0
forum.html
widget_casanatics/forum/templates/forum/forum.html
+1
-1
urls.py
widget_casanatics/forum/urls.py
+11
-4
No files found.
widget_casanatics/db.sqlite3
View file @
07460b50
No preview for this file type
widget_casanatics/forum/__pycache__/urls.cpython-310.pyc
View file @
07460b50
No preview for this file type
widget_casanatics/forum/templates/forum/forum.html
View file @
07460b50
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
{% endfor %}
{% endfor %}
</ul>
</ul>
<form
action=
"./forumpost/add"
>
<form
action=
"./forumpost
s
/add"
>
<button
type=
"Submit"
>
New Post
</button>
<button
type=
"Submit"
>
New Post
</button>
</form>
</form>
...
...
widget_casanatics/forum/urls.py
View file @
07460b50
...
@@ -4,10 +4,17 @@ from . import views
...
@@ -4,10 +4,17 @@ from . import views
urlpatterns
=
[
urlpatterns
=
[
path
(
""
,
views
.
forum
,
name
=
"index"
),
path
(
""
,
views
.
forum
,
name
=
"index"
),
path
(
"forumpost/<int:pk>/details/"
,
views
.
ForumDetailView
.
as_view
(),
name
=
"forumpostdetails"
),
path
(
path
(
"forumpost/add/"
,
views
.
ForumCreateView
.
as_view
(),
name
=
"forumpostadd"
),
"forumposts/<int:pk>/details/"
,
path
(
"forumpost/<int:pk>/edit/"
,
views
.
ForumUpdateView
.
as_view
(),
name
=
"forumpostedit"
),
views
.
ForumDetailView
.
as_view
(),
name
=
"forumpostdetails"
,
),
path
(
"forumposts/add/"
,
views
.
ForumCreateView
.
as_view
(),
name
=
"forumpostadd"
),
path
(
"forumposts/<int:pk>/edit/"
,
views
.
ForumUpdateView
.
as_view
(),
name
=
"forumpostedit"
,
),
]
]
...
...
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