created a url path for the create new widget user page

parent ef91bdd9
#dashboard/urls.py #dashboard/urls.py
from django.urls import path from django.urls import path
from .import views from . import views
# url for dashboard # url for dashboard
urlpatterns = [ urlpatterns = [
path("", views.dashboard_view, name = "dashboard"), path("", views.dashboard_view, name = "dashboard"),
path("widgetusers/<int:pk>/details", views.WidgetUserDetailView.as_view(), name="user_details"), path("widgetusers/<int:pk>/details", views.WidgetUserDetailView.as_view(), name="user_details"),
path("widgetusers/add/", views.WidgetUserCreateView.as_view(), name = "new_user"),
] ]
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