from django.urls import path from django.conf import settings from django.conf.urls.static import static from . import views from .views import * app_name = 'main' urlpatterns = [path('', IndexView.as_view(), name='index'), path('accounts/login/', BBLoginView.as_view(), name='login'), path('accounts/register/', RegisterUserView.as_view(), name='register'), path('accounts/logout/', views.logout_view, name='logout'), path('accounts/profile/', ProfileListView.as_view(), name='profile'), path('products/', ProductListView.as_view(), name='products'), path('product//', ProductDetailView.as_view(), name='product_detail'), ] + static(settings.MEDIA_URL, document_root=settings)