urls.py 623 B

123456789101112131415
  1. from django.conf import settings
  2. from django.conf.urls.static import static
  3. from django.urls import path, include
  4. from .views import *
  5. urlpatterns = [
  6. path('', ProductList.as_view(), name='base'),
  7. path('service/<int:pk>', ProductView.as_view(), name='prod_uct'),
  8. path('service/', ProductListMax.as_view(), name='service'),
  9. path('register/', RegistrationUserForm.as_view(), name='register'),
  10. path('profile/', profile, name='profile'),
  11. path('search_result/', Search.as_view(), name='search_result'),
  12. path('log/', log, name='log'),
  13. ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)