urls.py 699 B

123456789101112131415
  1. from .views import *
  2. from django.urls import path
  3. from django.conf import settings
  4. from django.conf.urls.static import static
  5. urlpatterns = [
  6. path('', ViewIndex.as_view(), name='index'),
  7. path('register', RegistrateUser.as_view(), name='register'),
  8. path('login', BBLoginView.as_view(), name='login'),
  9. path('logout', LogoutView.as_view(), name='logout'),
  10. path('service', ViewServices.as_view(), name='service'),
  11. path('service/<int:pk>', ServiceDetail.as_view(), name='service_id'),
  12. path('search_result', SearchResult.as_view(), name='search_result'),
  13. path('profile', Profile.as_view(), name='profile'),
  14. ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)