Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group3
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
Jonathan Talbot
widget_group3
Commits
02082545
Commit
02082545
authored
Apr 07, 2022
by
Giancarlo Angelo U. de Torres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to my part
parent
2854ca3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
models.py
widget_group3/widget_group3/models.py
+1
-0
views.py
widget_group3/widget_group3/views.py
+1
-7
No files found.
widget_group3/widget_group3/models.py
View file @
02082545
...
...
@@ -59,3 +59,4 @@ class Course(models.Model):
course_code
=
models
.
CharField
(
max_length
=
10
)
course_title
=
models
.
CharField
(
max_length
=
100
)
section
=
models
.
CharField
(
max_length
=
3
)
assignment
=
models
.
ForeignKey
(
Assignment
,
)
widget_group3/widget_group3/views.py
View file @
02082545
from
django.http
import
HttpResponse
from
.models
import
WidgetUser
,
Forum
,
Announcement
,
Assignments
,
def
homepage
(
request
):
return
HttpResponse
(
'Welcome to Widget!'
)
...
...
@@ -8,13 +9,6 @@ def assignments(request):
def
announcements
(
request
):
return
HttpResponse
(
'This is the Announcement Board!'
)
return
HttpResponse
(
'<br>'
)
return
HttpResponse
(
'ASSIGNMENTS: '
)
return
HttpResponse
(
'Assignment Name: '
<
name
>
)
return
HttpResponse
(
'Description: '
<
description
>
)
return
HttpResponse
(
'Perfect Score: '
<
max_points
>
)
return
HttpResponse
(
'Passing Score: '
<
passing_score
>
)
return
HttpResponse
(
'Course/Section: '
<
course_code
>
<
course_title
>
<
section
>
)
def
forum
(
request
):
return
HttpResponse
(
'Welcome to Widget’s Forum!'
)
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