Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group17
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
Vaughn Nephi Fajardo
widget_group17
Commits
8d4a32ff
Commit
8d4a32ff
authored
May 17, 2022
by
Miguel Luis D. Bandelaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: modified name of url to distinguish forum app templates
parent
b3eb273a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
3 deletions
+3
-3
urls.cpython-39.pyc
widget_group_17/forum/__pycache__/urls.cpython-39.pyc
+0
-0
views.cpython-39.pyc
widget_group_17/forum/__pycache__/views.cpython-39.pyc
+0
-0
post_add.html
widget_group_17/forum/templates/forum/post_add.html
+1
-1
urls.py
widget_group_17/forum/urls.py
+1
-1
views.py
widget_group_17/forum/views.py
+1
-1
No files found.
widget_group_17/forum/__pycache__/urls.cpython-39.pyc
View file @
8d4a32ff
No preview for this file type
widget_group_17/forum/__pycache__/views.cpython-39.pyc
View file @
8d4a32ff
No preview for this file type
widget_group_17/forum/templates/forum/add.html
→
widget_group_17/forum/templates/forum/
post_
add.html
View file @
8d4a32ff
...
...
@@ -9,7 +9,7 @@
<div
style =
"position: relative; left:80px; top:30px;"
>
<form
method=
"POST"
action =
"{% url 'forum:add' %}"
enctype=
"multipart/form-data"
>
{% csrf_token %}
{{
user
_form.as_p }}
{{
post
_form.as_p }}
<button
class=
"button"
type=
"Save Post"
>
Save Post
</button>
<button
onclick=
"location.href = '/forum'"
>
Return to Forum Posts
</button>
</form>
...
...
widget_group_17/forum/urls.py
View file @
8d4a32ff
...
...
@@ -5,6 +5,6 @@ app_name = "forum"
urlpatterns
=
[
path
(
''
,
views
.
index
,
name
=
"index"
),
path
(
'posts/<int:post_id>/details/'
,
views
.
detail
,
name
=
"detail"
),
path
(
'posts/add/'
,
views
.
add
,
name
=
"add"
),
path
(
'posts/add/'
,
views
.
add
,
name
=
"
post_
add"
),
# path('welcome', views.welcome, name='welcome')
]
\ No newline at end of file
widget_group_17/forum/views.py
View file @
8d4a32ff
...
...
@@ -29,4 +29,4 @@ def add(request):
return
redirect
(
"/forum"
)
else
:
post_form
=
PostForm
()
return
render
(
request
,
"forum/add.html"
,
{
"post_form"
:
post_form
})
\ No newline at end of file
return
render
(
request
,
"forum/post_add.html"
,
{
"post_form"
:
post_form
})
\ No newline at end of file
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