Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_django unchained
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
1
Merge Requests
1
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 Emmanuel B. Laurel
widget_django unchained
Commits
d1c3cff8
Commit
d1c3cff8
authored
Apr 04, 2022
by
Jose Emmanuel B. Laurel
Browse files
Options
Browse Files
Download
Plain Diff
Clean: removed 'WidgetUser' from line 2 so that it is no longer imported.
parents
3f2076f8
4ef6bb02
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
2 deletions
+13
-2
db.sqlite3
widget_django_unchained/db.sqlite3
+0
-0
models.cpython-39.pyc
...ango_unchained/homepage/__pycache__/models.cpython-39.pyc
+0
-0
views.cpython-39.pyc
...jango_unchained/homepage/__pycache__/views.cpython-39.pyc
+0
-0
0003_rename_id_name_widgetuser_id_num.cpython-39.pyc
...he__/0003_rename_id_name_widgetuser_id_num.cpython-39.pyc
+0
-0
widgetusers_listings.html
...go_unchained/homepage/templates/widgetusers_listings.html
+9
-0
views.py
widget_django_unchained/homepage/views.py
+4
-2
No files found.
widget_django_unchained/db.sqlite3
deleted
100644 → 0
View file @
3f2076f8
File deleted
widget_django_unchained/homepage/__pycache__/models.cpython-39.pyc
deleted
100644 → 0
View file @
3f2076f8
File deleted
widget_django_unchained/homepage/__pycache__/views.cpython-39.pyc
deleted
100644 → 0
View file @
3f2076f8
File deleted
widget_django_unchained/homepage/migrations/__pycache__/0003_rename_id_name_widgetuser_id_num.cpython-39.pyc
deleted
100644 → 0
View file @
3f2076f8
File deleted
widget_django_unchained/homepage/templates/widgetusers_listings.html
0 → 100644
View file @
d1c3cff8
<p>
<h2>
WIDGET USERS:
</h2>
{% for Department in Departments %}
<p>
<b>
{{Department.widgetuser.last_name}}, {{Department.widgetuser.first_name}} {{Department.widgetuser.middle_name}}
</b>
:
{{Department.widgetuser.id_num}}, {{Department.widgetuser.email}}, {{Department.dept_name}}, {{Department.home_unit}}
</p>
{% endfor %}
</p>
\ No newline at end of file
widget_django_unchained/homepage/views.py
View file @
d1c3cff8
from
django.http
import
HttpResponse
from
django.shortcuts
import
render
from
.models
import
Department
def
index
(
request
):
return
HttpResponse
(
"Welcome to Widget!"
)
Departments
=
Department
.
objects
.
all
()
return
render
(
request
,
'widgetusers_listings.html'
,
{
'Departments'
:
Departments
})
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