lostplaces-backend/lostplaces/lostplaces_app/urls.py

24 lines
859 B
Python
Raw Normal View History

2020-08-01 16:54:11 +02:00
from django.urls import path, include
from django.conf.urls import url
from .views import (
hello_world,
2020-08-01 19:00:11 +02:00
VoucherVerify,
place_detail_view,
place_list_view,
SignUpView,
PlaceCreateView,
PlaceUpdateView
)
2020-07-26 22:19:37 +02:00
urlpatterns = [
path('hello_world/', hello_world), # You know what this is :P
path('signup/', SignUpView.as_view(), name='signup'),
2020-08-01 19:00:11 +02:00
path('voucher/<slug:code>/', VoucherVerify.as_view(), name='voucher_verify'),
path('voucher/', VoucherVerify.as_view(), name='enter_voucher'),
2020-07-26 23:34:03 +02:00
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'),
2020-08-01 16:54:11 +02:00
path('place/', place_list_view, name='place_list'),
(r'^accounts/', include('invitation.urls'))
2020-07-31 14:53:39 +02:00
]