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'), path('offer/', views.OfferDetailView.as_view(), name = 'offer_detail'), path('offers/', views.OfferListView.as_view(), name = 'list_offers'), path('', views.Home.as_view(), name='homepage') ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)