Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
52e1c423
Commit
52e1c423
authored
May 14, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the Dashboard URLs lowercase to match the project specs
parent
c4b8d144
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
urls.py
widget_robo_mommy/Dashboard/urls.py
+4
-4
views.py
widget_robo_mommy/Dashboard/views.py
+4
-4
views.py
widget_robo_mommy/widget_Calendar/views.py
+1
-1
urls.py
widget_robo_mommy/widget_robo_mommy/urls.py
+2
-2
No files found.
widget_robo_mommy/Dashboard/urls.py
View file @
52e1c423
...
@@ -3,12 +3,12 @@ from .views import (Dashboard_list_view, WidgetUserDetailView,
...
@@ -3,12 +3,12 @@ from .views import (Dashboard_list_view, WidgetUserDetailView,
WidgetUserAddView
,
WidgetUserUpdateView
)
WidgetUserAddView
,
WidgetUserUpdateView
)
urlpatterns
=
[
urlpatterns
=
[
path
(
'
D
ashboard/'
,
Dashboard_list_view
,
name
=
'Dashboard_list_view'
),
path
(
'
d
ashboard/'
,
Dashboard_list_view
,
name
=
'Dashboard_list_view'
),
path
(
'
Widgetusers/<int:pk>/detail
s'
,
WidgetUserDetailView
.
as_view
(),
path
(
'
widgetuser
s'
,
WidgetUserDetailView
.
as_view
(),
name
=
'widgetuser-detail'
),
name
=
'widgetuser-detail'
),
path
(
'
Widgetusers/add/
'
,
WidgetUserAddView
.
as_view
(),
path
(
'
widgetusers
'
,
WidgetUserAddView
.
as_view
(),
name
=
'widgetuser-add'
),
name
=
'widgetuser-add'
),
path
(
'
W
idgetusers/<int:pk>/edit/'
,
WidgetUserUpdateView
.
as_view
(),
path
(
'
w
idgetusers/<int:pk>/edit/'
,
WidgetUserUpdateView
.
as_view
(),
name
=
'widgetuser-edit'
)
name
=
'widgetuser-edit'
)
]
]
...
...
widget_robo_mommy/Dashboard/views.py
View file @
52e1c423
...
@@ -32,7 +32,7 @@ def Dashboard_list_view(request):
...
@@ -32,7 +32,7 @@ def Dashboard_list_view(request):
class
WidgetUserDetailView
(
generic
.
DetailView
):
class
WidgetUserDetailView
(
generic
.
DetailView
):
model
=
WidgetUser
model
=
WidgetUser
template_name
=
'widgetuser-details.html'
template_name
=
'
dashboard/
widgetuser-details.html'
queryset
=
WidgetUser
.
objects
.
all
()
queryset
=
WidgetUser
.
objects
.
all
()
context_object_name
=
'widgetuser-detail'
context_object_name
=
'widgetuser-detail'
...
@@ -40,7 +40,7 @@ class WidgetUserDetailView(generic.DetailView):
...
@@ -40,7 +40,7 @@ class WidgetUserDetailView(generic.DetailView):
class
WidgetUserAddView
(
generic
.
CreateView
):
class
WidgetUserAddView
(
generic
.
CreateView
):
model
=
WidgetUser
model
=
WidgetUser
fields
=
'__all__'
fields
=
'__all__'
template_name
=
'widgetuser-add.html'
template_name
=
'
dashboard/
widgetuser-add.html'
def
get_success_url
(
self
):
def
get_success_url
(
self
):
return
reverse
(
'Dashboard:widgetuser-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
id
},
return
reverse
(
'Dashboard:widgetuser-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
id
},
...
@@ -49,9 +49,9 @@ class WidgetUserAddView(generic.CreateView):
...
@@ -49,9 +49,9 @@ class WidgetUserAddView(generic.CreateView):
class
WidgetUserUpdateView
(
generic
.
UpdateView
):
class
WidgetUserUpdateView
(
generic
.
UpdateView
):
model
=
WidgetUser
model
=
WidgetUser
template_name
=
'widgetuser-edit.html'
template_name
=
'
dashboard/
widgetuser-edit.html'
fields
=
'__all__'
fields
=
'__all__'
success_url
=
"
D
ashboard/"
success_url
=
"
d
ashboard/"
def
get_success_url
(
self
):
def
get_success_url
(
self
):
return
reverse
(
'Dashboard:widgetuser-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
id
},
return
reverse
(
'Dashboard:widgetuser-detail'
,
kwargs
=
{
'pk'
:
self
.
object
.
id
},
...
...
widget_robo_mommy/widget_Calendar/views.py
View file @
52e1c423
...
@@ -34,7 +34,7 @@ def index(request):
...
@@ -34,7 +34,7 @@ def index(request):
html_string
+=
'''
html_string
+=
'''
</ul>
</ul>
<a href="widget_Calendar/Events/add"><button value="click here">New Activity</button></a><br><br>
<a href="widget_Calendar/Events/add"><button value="click here">New Activity</button></a><br><br>
<a href="/
Dashboard/">D
ashboard</a><br>
<a href="/
dashboard/">d
ashboard</a><br>
<a href="/announcements/">Announcements</a><br>
<a href="/announcements/">Announcements</a><br>
<a href="/forum/">Forum</a><br>
<a href="/forum/">Forum</a><br>
<a href="/assignments">Assignments</a><br>
<a href="/assignments">Assignments</a><br>
...
...
widget_robo_mommy/widget_robo_mommy/urls.py
View file @
52e1c423
...
@@ -20,9 +20,9 @@ from django.urls import include, path
...
@@ -20,9 +20,9 @@ from django.urls import include, path
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
include
(
'announcements.urls'
,
namespace
=
"announcements"
)),
path
(
''
,
include
(
'announcements.urls'
,
namespace
=
"announcements"
)),
path
(
'widget_Calendar/'
,
include
(
'widget_Calendar.urls'
,
namespace
=
"widget_Calendar"
)),
path
(
'widget_Calendar/'
,
include
(
'widget_Calendar.urls'
,
namespace
=
"widget_Calendar"
)),
path
(
''
,
include
(
'Dashboard.urls'
,
namespace
=
"
D
ashboard"
)),
path
(
''
,
include
(
'Dashboard.urls'
,
namespace
=
"
d
ashboard"
)),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'assignments/'
,
include
(
'assignments.urls'
,
namespace
=
"assignments"
)),
path
(
'assignments/'
,
include
(
'assignments.urls'
,
namespace
=
"assignments"
)),
path
(
''
,
include
((
'forum.urls'
,
'forum'
),
namespace
=
'forum'
)),
path
(
''
,
include
((
'forum.urls'
,
'forum'
),
namespace
=
'forum'
)),
# path('
Dashboard/', include('Dashboard.urls', namespace="D
ashboard")),
# path('
dashboard/', include('dashboard.urls', namespace="d
ashboard")),
]
]
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