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
6f0226c9
Commit
6f0226c9
authored
May 10, 2022
by
Miguel Luis D. Bandelaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved cache issues
parent
e79a43fa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
6 deletions
+1
-6
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
urls.py
widget_group_17/forum/urls.py
+1
-2
views.py
widget_group_17/forum/views.py
+0
-4
No files found.
widget_group_17/forum/__pycache__/urls.cpython-39.pyc
View file @
6f0226c9
No preview for this file type
widget_group_17/forum/__pycache__/views.cpython-39.pyc
View file @
6f0226c9
No preview for this file type
widget_group_17/forum/urls.py
View file @
6f0226c9
...
...
@@ -4,7 +4,6 @@ from . import views
app_name
=
"forum"
urlpatterns
=
[
path
(
''
,
views
.
index
,
name
=
"index"
),
path
(
'<int:post_id>/'
,
views
.
detail
,
name
=
"detail"
),
path
(
'<int:post_id>/replies/'
,
views
.
replies
,
name
=
"replies"
)
path
(
'posts/<int:post_id>/details/'
,
views
.
detail
,
name
=
"detail"
),
# path('welcome', views.welcome, name='welcome')
]
\ No newline at end of file
widget_group_17/forum/views.py
View file @
6f0226c9
...
...
@@ -24,10 +24,6 @@ def detail(request, post_id):
return
render
(
request
,
"forum/detail.html"
,
{
"post"
:
post
})
# return HttpResponse("These are the details for post # %s" % author_id)
def
replies
(
request
,
post_id
):
reply_out
=
"These are the replies to post #
%
s."
return
HttpResponse
(
reply_out
%
post_id
)
# def welcome(request):
# forum_view = "FORUM POSTS: "
# # posts = Post.objects.all()
...
...
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