12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- from django.urls import include, path
- from . import views
- app_name = "films"
- urlpatterns = [
- path('', views.film_list, name='home'),
- path('countries/', views.country_list, name='country_list'),
- path('countries/<int:pk>/', views.country_detail, name='country_detail'),
- path('countries/create/', views.country_create, name='country_create'),
- path('countries/<int:pk>/update/',
- views.country_update, name='country_update'),
- path('countries/<int:pk>/delete/',
- views.country_delete, name='country_delete'),
- path('countries/autocomplete/',
- views.CountryAutocomplete.as_view(), name='country_autocomplete'),
- path('genres/', views.genre_list, name='genre_list'),
- path('genres/<int:pk>/', views.genre_detail, name='genre_detail'),
- path('genres/create/', views.genre_create, name='genre_create'),
- path('genres/<int:pk>/update/',
- views.genre_update, name='genre_update'),
- path('genres/<int:pk>/delete/',
- views.genre_delete, name='genre_delete'),
- path('films/', views.film_list, name='film_list'),
- path('films/<int:pk>/', views.film_detail, name='film_detail'),
- path('films/create/', views.film_create, name='film_create'),
- path('films/<int:pk>/update/',
- views.film_update, name='film_update'),
- path('film/<int:pk>/delete/',
- views.film_delete, name='film_delete'),
- path('people/', views.person_list, name='person_list'),
- path('people/<int:pk>/', views.person_detail, name='person_detail'),
- path('people/create/', views.person_create, name='person_create'),
- path('people/<int:pk>/update/',
- views.person_update, name='person_update'),
- path('people/<int:pk>/delete/',
- views.person_delete, name='person_delete'),
- path('people/autocomplete/',
- views.PersonAutocomplete.as_view(), name='person_autocomplete'),
- ]
|