Updated urls.py to accomodate widget user edit add and details

parent 0c741fb2
from django.urls import path
from .views import index
from .views import dashboard_view, WidgetUserView, WidgetUserCreateView, WidgetUserUpdateView
urlpatterns = [
path('',index, name = 'index'),
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'),
]
dashboard = "Dashboard"
\ No newline at end of file
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