Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_gitgud
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
Neal Luigi D. Rodriguez
midterm_gitgud
Commits
297b0b68
Commit
297b0b68
authored
Mar 04, 2023
by
Gareth Xerxes Yap Castillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added and finalized html in views.py, added signature to readme file
parent
d994baee
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
README.txt
README.txt
+3
-2
views.cpython-39.pyc
widget_gitgud/Dashboard/__pycache__/views.cpython-39.pyc
+0
-0
views.py
widget_gitgud/Dashboard/views.py
+11
-8
db.sqlite3
widget_gitgud/db.sqlite3
+0
-0
No files found.
README.txt
View file @
297b0b68
CSCI 40-F
CSCI 40-F
Group Members:
Group Members:
CASTILLO, Gareth Xerxes
205828
CASTILLO, Gareth Xerxes
GARCIA, Ann Colleen
GARCIA, Ann Colleen
OLIVARES, Christian Louis
OLIVARES, Christian Louis
204374 RODRIGUEZ, Neal Luigi D.
204374 RODRIGUEZ, Neal Luigi D.
...
@@ -20,3 +20,4 @@ CALENDAR-Olivares
...
@@ -20,3 +20,4 @@ CALENDAR-Olivares
[References]
[References]
[Signatures]
[Signatures]
(sgd) Gareth Xerxes Yap Castillo March 5, 2023
\ No newline at end of file
widget_gitgud/Dashboard/__pycache__/views.cpython-39.pyc
View file @
297b0b68
No preview for this file type
widget_gitgud/Dashboard/views.py
View file @
297b0b68
from
django.shortcuts
import
render
from
django.shortcuts
import
HttpResponse
from
django.shortcuts
import
HttpResponse
from
.models
import
Department
,
WidgetUser
def
all_departments
(
request
):
department_list
=
Department
.
objects
.
all
()
def
all_widget_users
(
request
):
from
.models
import
Department
,
WidgetUser
widget_users_list
=
WidgetUsers
.
objects
.
all
()
def
index
(
request
):
def
index
(
request
):
return
HttpResponse
(
"Welcome to Widget!<br> <br>"
return_string
=
'<ul>'
"WIDGET USERS:<br>"
)
for
user
in
WidgetUser
.
objects
.
all
():
return_string
+=
'<li>{}, {} {}: {}, {}</li>'
.
format
(
user
.
last_name
,
user
.
first_name
,
user
.
middle_name
,
user
.
department
,
user
.
department
.
home_unit
)
return_string
+=
'</ul>'
html_string
=
'<html><head>Welcome to Widget!<br> <br> WIDGET USERS:</head><body>{}</body><html>'
.
format
(
return_string
)
return
HttpResponse
(
html_string
)
\ No newline at end of file
widget_gitgud/db.sqlite3
View file @
297b0b68
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