2018-05-23 21:28:27 +00:00
|
|
|
from django.urls import path
|
2017-01-30 11:16:07 +00:00
|
|
|
from .views import *
|
2016-07-05 21:43:18 +00:00
|
|
|
|
2018-04-03 16:44:10 +00:00
|
|
|
|
|
|
|
app_name = 'villages'
|
|
|
|
|
2016-07-05 21:43:18 +00:00
|
|
|
urlpatterns = [
|
2018-05-23 21:28:27 +00:00
|
|
|
path('', VillageListView.as_view(), name='list'),
|
|
|
|
path('create/', VillageCreateView.as_view(), name='create'),
|
|
|
|
path('<slug:slug>/delete/', VillageDeleteView.as_view(), name='delete'),
|
|
|
|
path('<slug:slug>/edit/', VillageUpdateView.as_view(), name='update'),
|
|
|
|
path('<slug:slug>/', VillageDetailView.as_view(), name='detail'),
|
2016-07-05 21:43:18 +00:00
|
|
|
]
|