From a4780a22f2b916cae276d83c51ac51933a37d02c Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 25 Dec 2020 18:17:05 +0100 Subject: [PATCH] Changed urlpattern tree. --- django_lostplaces/lostplaces/urls.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/django_lostplaces/lostplaces/urls.py b/django_lostplaces/lostplaces/urls.py index e50bf2d..a7560ec 100644 --- a/django_lostplaces/lostplaces/urls.py +++ b/django_lostplaces/lostplaces/urls.py @@ -28,21 +28,22 @@ urlpatterns = [ path('flat//', FlatView, name='flatpage'), path('osm/', OSMMapView.as_view(), name='osm'), + path('explorer//', ExplorerProfileView.as_view(), name='explorer_profile'), + path('explorer/update/', ExplorerProfileUpdateView.as_view(), name='explorer_profile_update'), + path('place/', PlaceListView.as_view(), name='place_list'), path('place//', PlaceDetailView.as_view(), name='place_detail'), path('place/create/', PlaceCreateView.as_view(), name='place_create'), path('place/update//', PlaceUpdateView.as_view(), name='place_edit'), path('place/delete//', PlaceDeleteView.as_view(), name='place_delete'), + path('place/tag/create/', PlaceTagSubmitView.as_view(), name='place_tag_submit'), + path('place/tag/delete//', PlaceTagDeleteView.as_view(), name='place_tag_delete'), + path('place/fav/create//', PlaceFavoriteView.as_view(), name='place_favorite'), + path('place/fav/delete//', PlaceUnfavoriteView.as_view(), name='place_unfavorite'), + path('place_image/create/', PlaceImageCreateView.as_view(), name='place_image_create'), path('place_image/delete/', PlaceImageDeleteView.as_view(), name='place_image_delete'), - path('place/tag/', PlaceTagSubmitView.as_view(), name='place_tag_submit'), - path('place/tag/delete//', PlaceTagDeleteView.as_view(), name='place_tag_delete'), path('photo_album/create/', PhotoAlbumCreateView.as_view(), name='photo_album_create'), - path('photo_album/delete/', PhotoAlbumDeleteView.as_view(), name='photo_album_delete'), - - path('explorer//', ExplorerProfileView.as_view(), name='explorer_profile'), - path('explorer/update/', ExplorerProfileUpdateView.as_view(), name='explorer_profile_update'), - path('explorer/favorite//', PlaceFavoriteView.as_view(), name='place_favorite'), - path('explorer/unfavorite//', PlaceUnfavoriteView.as_view(), name='place_unfavorite') + path('photo_album/delete/', PhotoAlbumDeleteView.as_view(), name='photo_album_delete') ]