Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_huli
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
Izaac Daniel B. Muncal
midterm_huli
Commits
b9fc3671
Commit
b9fc3671
authored
May 12, 2023
by
Izaac Daniel B. Muncal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed occured errors
parent
e79e2e5d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
urls.py
widget_huli/dashboard/urls.py
+3
-3
views.py
widget_huli/dashboard/views.py
+3
-3
No files found.
widget_huli/dashboard/urls.py
View file @
b9fc3671
...
...
@@ -3,9 +3,9 @@ from .views import dashboard_view, WidgetUserView, WidgetUserCreateView, WidgetU
urlpatterns
=
[
path
(
''
,
dashboard_view
,
name
=
'dashboard'
),
path
(
'
dashboard/widget/<pk>/details/
'
,
WidgetUserView
.
as_view
(),
name
=
'widgetuser-details'
),
path
(
'
dashboard/widget/<pk>/add/
'
,
WidgetUserCreateView
.
as_view
(),
name
=
'widgetuser-add'
),
path
(
'
dashboard/widget/<pk>/edit/
'
,
WidgetUserUpdateView
.
as_view
(),
name
=
'widgetuser-edit'
),
path
(
'
/widgetusers/<pk>/details
'
,
WidgetUserView
.
as_view
(),
name
=
'widgetuser-details'
),
path
(
'
/widgetusers/add
'
,
WidgetUserCreateView
.
as_view
(),
name
=
'widgetuser-add'
),
path
(
'
/widgetusers/<pk>/edit
'
,
WidgetUserUpdateView
.
as_view
(),
name
=
'widgetuser-edit'
),
]
app_name
=
"dashboard"
\ No newline at end of file
widget_huli/dashboard/views.py
View file @
b9fc3671
from
django.shortcuts
import
render
from
django.views.generic.list
import
ListView
from
django.views.generic.detail
import
DetailView
from
django.views.generic.edit
import
CreateView
,
UpdateView
from
django.http
import
HttpResponse
from
.models
import
WidgetUser
,
Department
def
dashboard_view
(
request
):
return
render
(
request
,
'dashboard/dashboard.html'
,{
'nickname'
:
'Dani'
})
context
=
{}
context
[
"widgetuser_list"
]
=
WidgetUser
.
objects
.
all
()
return
render
(
request
,
'dashboard/dashboard.html'
,
context
)
class
WidgetUserView
(
DetailView
):
...
...
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