Skip to content

Instantly share code, notes, and snippets.

@DanyF-github
Created March 24, 2022 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanyF-github/6a3bb2cf1cfd716a0c9e8c026685223a to your computer and use it in GitHub Desktop.
Save DanyF-github/6a3bb2cf1cfd716a0c9e8c026685223a to your computer and use it in GitHub Desktop.
`
from django.urls import path
from . import views
app_name = 'lead_manager'
urlpatterns = [
path('', views.LeadListView.as_view(), name='lead_list'),
path('create/', views.LeadCreateView.as_view(), name='lead_create'),
path('<int:pk>/update/', views.LeadUpdateView.as_view(), name='lead_update'),
path('<int:pk>/delete/', views.lead_delete, name='lead_delete'),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment