33 lines
1.8 KiB
Python
33 lines
1.8 KiB
Python
"""Location app urlconf."""
|
|
from django.urls import path
|
|
|
|
from location import views
|
|
|
|
app_name = 'location'
|
|
|
|
urlpatterns = [
|
|
path('country/', views.CountryListView.as_view(), name='country_list'),
|
|
path('country/create/', views.CountryCreateView.as_view(), name='country_create'),
|
|
path('country/<int:pk>/', views.CountryRetrieveView.as_view(), name='country_retrieve'),
|
|
path('country/<int:pk>/delete/', views.CountryDestroyView.as_view(), name='country_destroy'),
|
|
path('country/<int:pk>/update/', views.CountryUpdateView.as_view(), name='country_update'),
|
|
|
|
path('region/', views.RegionListView.as_view(), name='region_list'),
|
|
path('region/create/', views.RegionCreateView.as_view(), name='region_create'),
|
|
path('region/<int:pk>/', views.RegionRetrieveView.as_view(), name='region_retrieve'),
|
|
path('region/<int:pk>/delete/', views.RegionDestroyView.as_view(), name='region_destroy'),
|
|
path('region/<int:pk>/update/', views.RegionUpdateView.as_view(), name='region_update'),
|
|
|
|
path('city/', views.CityListView.as_view(), name='city_list'),
|
|
path('city/create/', views.CityCreateView.as_view(), name='city_create'),
|
|
path('city/<int:pk>/', views.CityRetrieveView.as_view(), name='city_retrieve'),
|
|
path('city/<int:pk>/delete/', views.CityDestroyView.as_view(), name='city_destroy'),
|
|
path('city/<int:pk>/update/', views.CityUpdateView.as_view(), name='city_update'),
|
|
|
|
path('address/', views.AddressListView.as_view(), name='address_list'),
|
|
path('address/create/', views.AddressCreateView.as_view(), name='address_create'),
|
|
path('address/<int:pk>/', views.AddressRetrieveView.as_view(), name='address_retrieve'),
|
|
path('address/<int:pk>/delete/', views.AddressDestroyView.as_view(), name='address_destroy'),
|
|
path('address/<int:pk>/update/', views.AddressUpdateView.as_view(), name='address_update'),
|
|
]
|