Project_Camper/vagus/camper/urls.py

15 lines
548 B
Python
Raw Normal View History

2020-12-27 01:33:07 +01:00
from django.conf.urls import url
from django.urls import path, re_path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
re_path('add-offer/', views.CreateOffer.as_view(), name='create_offer'),
2021-01-17 17:10:04 +01:00
#path('offer/<slug:slug>', views.OfferDetailView.as_view(), name = 'offer_detail_view'),
2020-12-27 01:33:07 +01:00
path('offers/', views.OfferListView.as_view(), name = 'list_offers'),
path('', views.Home.as_view(), name='homepage')
2021-01-08 22:23:52 +01:00
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)