villafleurie/rental/urls.py
2020-06-13 18:12:10 +02:00

26 lines
875 B
Python

from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns
from django.urls import path
from villafleurie import settings
from rental.views import home, booking, contact, place
app_name = 'rental'
urlpatterns = [
path('a-propos/', home.About.as_view(), name='about'),
path('legal/', home.Legal.as_view(), name='legal'),
path('partenaires/', home.Partners.as_view(), name='partners'),
path('services/', home.Services.as_view(), name='services'),
path('contact/', contact.view, name='contact'),
path('reservation/', booking.view, name='reservation'),
path('', place.index, name='index'),
path('hebergements/', place.all, name='list_place'),
path('<place_name>/', place.view, name='detail_place')
]
urlpatterns += staticfiles_urlpatterns()
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)