2016-07-05 21:43:18 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
from views import *
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
url(r'^$', VillageListView.as_view(), name='list'),
|
|
|
|
url(r'create/$', VillageCreateView.as_view(), name='create'),
|
2016-07-10 17:19:41 +00:00
|
|
|
url(r'(?P<slug>[-_\w+]+)/delete/$', VillageDeleteView.as_view(), name='delete'),
|
2016-07-05 21:43:18 +00:00
|
|
|
url(r'(?P<slug>[-_\w+]+)/edit/$', VillageUpdateView.as_view(), name='update'),
|
|
|
|
url(r'(?P<slug>[-_\w+]+)/$', VillageDetailView.as_view(), name='detail'),
|
|
|
|
]
|