2020-09-19 22:50:07 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2020-07-26 22:19:37 +02:00
|
|
|
from django.urls import path
|
2020-09-14 17:26:17 +02:00
|
|
|
from lostplaces.views import (
|
2020-08-05 18:57:09 +02:00
|
|
|
HomeView,
|
2020-12-25 17:56:17 +01:00
|
|
|
FlatView,
|
|
|
|
OSMMapView,
|
2020-08-12 19:24:04 +02:00
|
|
|
PlaceDetailView,
|
|
|
|
PlaceListView,
|
2020-07-31 00:27:01 +02:00
|
|
|
PlaceCreateView,
|
2020-08-06 16:57:43 +02:00
|
|
|
PlaceUpdateView,
|
2020-08-26 21:36:10 +02:00
|
|
|
PlaceDeleteView,
|
2020-09-09 20:22:44 +02:00
|
|
|
PlaceTagDeleteView,
|
|
|
|
PlaceTagSubmitView,
|
2020-12-24 15:56:33 +01:00
|
|
|
PlaceFavoriteView,
|
|
|
|
PlaceUnfavoriteView,
|
2020-12-25 19:32:54 +01:00
|
|
|
PlaceVisitCreateView,
|
|
|
|
PlaceVisitDeleteView,
|
2020-09-26 09:48:06 +02:00
|
|
|
PlaceImageCreateView,
|
2020-09-26 16:08:56 +02:00
|
|
|
PlaceImageDeleteView,
|
2020-12-25 17:56:17 +01:00
|
|
|
PhotoAlbumCreateView,
|
|
|
|
PhotoAlbumDeleteView,
|
2020-12-25 13:29:34 +01:00
|
|
|
ExplorerProfileView,
|
2021-12-30 23:20:05 +01:00
|
|
|
ExplorerProfileUpdateView,
|
|
|
|
PlaceVoteView
|
2020-07-31 00:27:01 +02:00
|
|
|
)
|
2020-07-26 22:19:37 +02:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-09-10 18:37:10 +02:00
|
|
|
path('', HomeView.as_view(), name='lostplaces_home'),
|
2020-12-25 17:54:15 +01:00
|
|
|
path('flat/<slug:slug>/', FlatView, name='flatpage'),
|
|
|
|
path('osm/', OSMMapView.as_view(), name='osm'),
|
|
|
|
|
2020-12-25 18:17:05 +01:00
|
|
|
path('explorer/<int:explorer_id>/', ExplorerProfileView.as_view(), name='explorer_profile'),
|
|
|
|
path('explorer/update/', ExplorerProfileUpdateView.as_view(), name='explorer_profile_update'),
|
|
|
|
|
2020-12-25 17:54:15 +01:00
|
|
|
path('place/', PlaceListView.as_view(), name='place_list'),
|
2020-08-12 19:24:04 +02:00
|
|
|
path('place/<int:pk>/', PlaceDetailView.as_view(), name='place_detail'),
|
2020-07-31 00:27:01 +02:00
|
|
|
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
|
|
|
|
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
|
2020-08-06 16:57:43 +02:00
|
|
|
path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'),
|
2020-12-25 19:32:54 +01:00
|
|
|
path('place/tag/create/<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'),
|
2020-12-25 18:17:05 +01:00
|
|
|
path('place/fav/create/<int:place_id>/', PlaceFavoriteView.as_view(), name='place_favorite'),
|
|
|
|
path('place/fav/delete/<int:place_id>/', PlaceUnfavoriteView.as_view(), name='place_unfavorite'),
|
2020-12-25 19:32:54 +01:00
|
|
|
path('place/visit/create/<int:place_id>/', PlaceVisitCreateView.as_view(), name='place_visit_create'),
|
|
|
|
path('place/visit/delete/<int:place_id>/', PlaceVisitDeleteView.as_view(), name='place_visit_delete'),
|
2020-12-25 18:17:05 +01:00
|
|
|
|
2020-12-25 19:32:54 +01:00
|
|
|
path('place_image/create/<int:place_id>/', PlaceImageCreateView.as_view(), name='place_image_create'),
|
|
|
|
path('place_image/delete/<int:pk>/', PlaceImageDeleteView.as_view(), name='place_image_delete'),
|
2021-12-30 23:20:05 +01:00
|
|
|
|
|
|
|
path('place/vote/<int:place_id>/<int:vote>', PlaceVoteView.as_view(), name='place_vote'),
|
2020-12-25 17:54:15 +01:00
|
|
|
|
2020-12-25 19:32:54 +01:00
|
|
|
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')
|
2020-07-31 14:53:39 +02:00
|
|
|
]
|