Modified app-level urls.py to add necessary urls for the dashboard app pages.

parent 098daa08
from django.urls import path from django.urls import path
from .views import index from .views import (dashboard, WidgetUserDetailView, WidgetUserCreateView, WidgetUserUpdateView)
urlpatterns = [ 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" app_name = "dashboard"
\ No newline at end of file
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