Advertisement
pacho_the_python

Untitled

Jun 24th, 2023
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1.  
  2. from django.urls import path, include
  3.  
  4. from exam_23_06.web.views import index, dashboard, create_fruit, fruit_details, fruit_edit, fruit_delete, \
  5.     profile_create, profile_details, profile_edit, profile_delete
  6.  
  7. urlpatterns = [
  8.     path('', index, name='home page'),
  9.     path('dashboard/', dashboard, name='dashboard'),
  10.     path('create/', create_fruit, name='create fruit'),
  11.     path('<int:pk>/', include([
  12.         path('details/', fruit_details, name='fruit details'),
  13.         path('edit/', fruit_edit, name='fruit edit'),
  14.         path('delete/', fruit_delete, name='fruit delete'),
  15.     ])),
  16.     path('profile/', include([
  17.         path('create/', profile_create, name='profile create'),
  18.         path('details/', profile_details, name='profile details'),
  19.         path('edit/', profile_edit, name='profile edit'),
  20.         path('delete/', profile_delete, name='profile delete'),
  21.     ])),
  22. ]
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement