Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
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
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
590d90d4
Commit
590d90d4
authored
Mar 05, 2023
by
Deokhyun Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
view is implemented and properly shows the content
parent
34daae9e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
views.cpython-310.pyc
...ischipmunks/assignments/__pycache__/views.cpython-310.pyc
+0
-0
views.py
widget_aguandhischipmunks/assignments/views.py
+19
-2
db.sqlite3
widget_aguandhischipmunks/db.sqlite3
+0
-0
No files found.
widget_aguandhischipmunks/assignments/__pycache__/views.cpython-310.pyc
View file @
590d90d4
No preview for this file type
widget_aguandhischipmunks/assignments/views.py
View file @
590d90d4
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
from
.models
import
Assignment
,
Course
# Create your views here.
def
index
(
request
):
return
HttpResponse
(
"Welcome assignments"
)
\ No newline at end of file
title
=
"Widget's Assignments Page"
+
"<br><br>"
assignments
=
Assignment
.
objects
.
all
()
# courses = Course.objects.all()
output_view
=
""
for
assignment
in
assignments
:
name
=
"Assignment Name: "
+
assignment
.
name
+
"<br>"
description
=
"Description: "
+
assignment
.
description
+
"<br>"
perfect_score
=
"Perfect Score: "
+
str
(
assignment
.
perfect_score
)
+
"<br>"
passing_score
=
"Passing Score: "
+
str
(
assignment
.
passing_score
)
+
"<br>"
course_section
=
"Course/Section: "
+
assignment
.
course
.
code
+
" "
+
assignment
.
course
.
title
+
"-"
+
assignment
.
course
.
section
+
"<br><br>"
output_view
=
output_view
+
name
+
description
+
perfect_score
+
passing_score
+
course_section
return
HttpResponse
(
title
+
output_view
)
\ No newline at end of file
widget_aguandhischipmunks/db.sqlite3
View file @
590d90d4
No preview for this file type
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