2020-07-26 22:19:37 +02:00
|
|
|
from django.urls import path
|
2020-07-31 00:27:01 +02:00
|
|
|
from .views import (
|
2020-08-03 17:30:31 +02:00
|
|
|
hello_world,
|
2020-08-05 18:57:09 +02:00
|
|
|
HomeView,
|
2020-07-31 00:27:01 +02:00
|
|
|
place_detail_view,
|
|
|
|
place_list_view,
|
|
|
|
SignUpView,
|
|
|
|
PlaceCreateView,
|
2020-08-06 16:57:43 +02:00
|
|
|
PlaceUpdateView,
|
|
|
|
PlaceDeleteView
|
2020-07-31 00:27:01 +02:00
|
|
|
)
|
2020-07-26 22:19:37 +02:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-07-29 00:15:12 +02:00
|
|
|
path('hello_world/', hello_world), # You know what this is :P
|
2020-08-05 18:57:09 +02:00
|
|
|
path('', HomeView.as_view(), name='home'),
|
2020-07-29 00:15:12 +02:00
|
|
|
path('signup/', SignUpView.as_view(), name='signup'),
|
2020-07-26 23:34:03 +02:00
|
|
|
path('place/<int:pk>/', place_detail_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-07-30 10:51:05 +02:00
|
|
|
path('place/', place_list_view, name='place_list')
|
2020-07-31 14:53:39 +02:00
|
|
|
]
|