Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_TypeWriterMonkeyCSCIMoment
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
Jose Leonardo J. Sacamos III
widget_TypeWriterMonkeyCSCIMoment
Commits
c76df248
Commit
c76df248
authored
Apr 05, 2022
by
Teo Quinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the views for homepage to reflect the details accordingly.
parent
ac1866a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
db.sqlite3
widget_TypeWriterMonkeyCSCIMoment/db.sqlite3
+0
-0
views.cpython-310.pyc
...nkeyCSCIMoment/homepage/__pycache__/views.cpython-310.pyc
+0
-0
views.py
widget_TypeWriterMonkeyCSCIMoment/homepage/views.py
+11
-1
No files found.
widget_TypeWriterMonkeyCSCIMoment/db.sqlite3
View file @
c76df248
No preview for this file type
widget_TypeWriterMonkeyCSCIMoment/homepage/__pycache__/views.cpython-310.pyc
View file @
c76df248
No preview for this file type
widget_TypeWriterMonkeyCSCIMoment/homepage/views.py
View file @
c76df248
from
django.http
import
HttpResponse
from
.models
import
Department
,
WidgetUser
users
=
WidgetUser
.
objects
.
all
()
displayString
=
"WIDGET USERS:"
for
i
in
users
:
userString
=
'<br />{}, {} {}: {}, {}, {}, {}'
.
format
(
i
.
last_name
,
i
.
first_name
,
i
.
middle_name
,
i
.
id_num
,
i
.
email
,
i
.
department
.
dept_name
,
i
.
department
.
home_unit
)
displayString
+=
userString
# Create your views here.
def
index
(
request
):
return
HttpResponse
(
'Welcome to Widget!'
)
\ No newline at end of file
return
HttpResponse
(
displayString
)
\ 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