bornhack-website/src/villages/urls.py

14 lines
434 B
Python
Raw Normal View History

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
2019-06-16 12:32:24 +00:00
app_name = "villages"
2018-04-03 16:44:10 +00:00
2016-07-05 21:43:18 +00:00
urlpatterns = [
2019-06-16 12:32:24 +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
]