Commit 68c35e93 authored by Elaiza Bolislis's avatar Elaiza Bolislis

Modified urls.py (both project-level and app-level) to apply necessary url...

Modified urls.py (both project-level and app-level) to apply necessary url configurations for each of the four pages within the dashboard app.
parent 11ac5c79
from django.urls import path
from .views import index
from .views import (dashboard, WidgetUserDetailView,
WidgetUserCreateView, WidgetUserUpdateView)
urlpatterns = [
path('', index, name='index'),
path('dashboard/',
dashboard,
name='dashboard'),
path('widgetusers/<int:pk>/details/',
WidgetUserDetailView.as_view(),
name='widgetuser-details'),
path('widgetusers/add/',
WidgetUserCreateView.as_view(),
name='widgetuser-create'),
path('widgetusers/<int:pk>/edit/',
WidgetUserUpdateView.as_view(),
name='widgetuser-update'),
]
app_name = "dashboard"
......@@ -17,7 +17,7 @@ from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('dashboard/', include('dashboard.urls', namespace="dashboard")),
path('', include('dashboard.urls', namespace="dashboard")),
path('forum/', include('forum.urls', namespace="forum")),
path('announcements/', include('announcements.urls', namespace="announcements")),
path('widget_calendar/', include('widget_calendar.urls', namespace="calendar")),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment