Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.urls import path, include
- from exam_23_06.web.views import index, dashboard, create_fruit, fruit_details, fruit_edit, fruit_delete, \
- profile_create, profile_details, profile_edit, profile_delete
- urlpatterns = [
- path('', index, name='home page'),
- path('dashboard/', dashboard, name='dashboard'),
- path('create/', create_fruit, name='create fruit'),
- path('<int:pk>/', include([
- path('details/', fruit_details, name='fruit details'),
- path('edit/', fruit_edit, name='fruit edit'),
- path('delete/', fruit_delete, name='fruit delete'),
- ])),
- path('profile/', include([
- path('create/', profile_create, name='profile create'),
- path('details/', profile_details, name='profile details'),
- path('edit/', profile_edit, name='profile edit'),
- path('delete/', profile_delete, name='profile delete'),
- ])),
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement