reverend
547179b0ca
commit 97b044cafb7f17f23b3b1beedcf70af209a60ddc Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:25:40 2020 +0200 Updating gitignore commit 4891d80486e1f95db8ae66385c7c97426a3ca1a4 Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:25:20 2020 +0200 Updating Readme commit f05c43abbdc7eb30896ad6d10fe80fd6483338d9 Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:23:30 2020 +0200 Renaming Module commit fd5ad2ee9f8cbacd565da45b257928192ffc651c Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:23:16 2020 +0200 Renaming module references commit 828a0dd5dd73723b84b77908497903ed26b6966b Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:21:20 2020 +0200 Renaming Project
31 lines
1.2 KiB
Python
31 lines
1.2 KiB
Python
from django.urls import path
|
|
from lostplaces.views import (
|
|
HomeView,
|
|
PlaceDetailView,
|
|
PlaceListView,
|
|
PlaceCreateView,
|
|
PlaceUpdateView,
|
|
PlaceDeleteView,
|
|
PlaceTagDeleteView,
|
|
PlaceTagSubmitView,
|
|
PhotoAlbumCreateView,
|
|
PhotoAlbumDeleteView,
|
|
FlatView
|
|
)
|
|
|
|
urlpatterns = [
|
|
path('', HomeView.as_view(), name='lostplaces_home'),
|
|
path('place/<int:pk>/', PlaceDetailView.as_view(), name='place_detail'),
|
|
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
|
|
path('photo_album/create/<int:place_id>', PhotoAlbumCreateView.as_view(), name='photo_album_create'),
|
|
path('photo_album/delete/<int:pk>', PhotoAlbumDeleteView.as_view(), name='photo_album_delete'),
|
|
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
|
|
path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'),
|
|
path('place/', PlaceListView.as_view(), name='place_list'),
|
|
path('flat/<slug:slug>/', FlatView, name='flatpage'),
|
|
|
|
# POST-only URLs for tag submission
|
|
path('place/tag/<int:tagged_id>', PlaceTagSubmitView.as_view(), name='place_tag_submit'),
|
|
path('place/tag/delete/<int:tagged_id>/<int:tag_id>', PlaceTagDeleteView.as_view(), name='place_tag_delete')
|
|
]
|