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//', PlaceDetailView.as_view(), name='place_detail'), path('place/create/', PlaceCreateView.as_view(), name='place_create'), path('photo_album/create/', PhotoAlbumCreateView.as_view(), name='photo_album_create'), path('photo_album/delete/', PhotoAlbumDeleteView.as_view(), name='photo_album_delete'), path('place/update//', PlaceUpdateView.as_view(), name='place_edit'), path('place/delete//', PlaceDeleteView.as_view(), name='place_delete'), path('place/', PlaceListView.as_view(), name='place_list'), path('flat//', FlatView, name='flatpage'), # POST-only URLs for tag submission path('place/tag/', PlaceTagSubmitView.as_view(), name='place_tag_submit'), path('place/tag/delete//', PlaceTagDeleteView.as_view(), name='place_tag_delete') ]