21 lines
681 B
Python
21 lines
681 B
Python
from django.urls import path
|
|
from .views import (
|
|
HomeView,
|
|
place_detail_view,
|
|
place_list_view,
|
|
SignUpView,
|
|
PlaceCreateView,
|
|
PlaceUpdateView,
|
|
PlaceDeleteView
|
|
)
|
|
|
|
urlpatterns = [
|
|
path('', HomeView.as_view(), name='home'),
|
|
path('signup/', SignUpView.as_view(), name='signup'),
|
|
path('place/<int:pk>/', place_detail_view, name='place_detail'),
|
|
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
|
|
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
|
|
path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'),
|
|
path('place/', place_list_view, name='place_list')
|
|
]
|