Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 18
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
Rac Gerard Elizaga
widget_group 18
Commits
538d60f3
Commit
538d60f3
authored
May 18, 2022
by
Maso Crisostomo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated announcements app with templates again
parent
b67dc1ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
views.cpython-38.pyc
...t_group_18/announcements/__pycache__/views.cpython-38.pyc
+0
-0
views.py
widget_group_18/announcements/views.py
+5
-11
No files found.
widget_group_18/announcements/__pycache__/views.cpython-38.pyc
View file @
538d60f3
No preview for this file type
widget_group_18/announcements/views.py
View file @
538d60f3
...
@@ -36,15 +36,9 @@ def detail(request, announcement_id):
...
@@ -36,15 +36,9 @@ def detail(request, announcement_id):
raise
Http404
(
"Announcement does not exist!"
)
raise
Http404
(
"Announcement does not exist!"
)
return
render
(
request
,
"announcements/detail.html"
,
{
"announcement"
:
announcement
})
return
render
(
request
,
"announcements/detail.html"
,
{
"announcement"
:
announcement
})
def
reactions
(
request
,
announcement_id
):
response
=
"This are the reactions to announcement #
%
s."
return
HttpResponse
(
response
%
announcement_id
)
def
react
(
request
,
announcement_id
):
return
HttpResponse
(
"You are reacting to announcement #
%
s."
%
announcement_id
)
\ No newline at end of file
# def reactions(request, announcement_id):
# response = "This are the reactions to announcement # %s."
# return HttpResponse(response % announcement_id)
# def react(request, announcement_id):
# return HttpResponse("You are reacting to announcement # %s." % announcement_id)
\ 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