Answers for "Standard Django URL"

1

Standard Django URL

from django.urls import path

from . import views, tests

#####/////////////////// AUDITION URLS ///////////////////#####
urlpatterns = [
    
    ##-------------------------------VIEWS-------------------------------##
    path('view/index', views.audition_view_index, name='audition_view_index'),
    path('view/create', views.audition_view_create, name='audition_view_create'),
    path('view/edit/<int:id>', views.audition_view_edit, name='audition_view_edit'),
    path('view/details/<int:id>', views.audition_view_details, name='audition_view_details'),

    ##-------------------------------PROCESSES-------------------------------##
    path('process/create', views.audition_process_create, name='audition_process_create'),
    path('process/edit/<int:id>', views.audition_process_edit, name='audition_process_edit'),
    path('process/delete/<int:id>', views.audition_process_delete, name='audition_process_delete'),

    ##-------------------------------SFX-------------------------------##


    ##-------------------------------TEST-------------------------------##
    path('test', views.test, name='test'),
]
Posted by: Guest on July-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language