from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), # Кабинет path("cabinet/", views.cabinet_view, name="cabinet"), path("cabinet/photo/upload/", views.cabinet_upload_photo, name="cabinet_upload_photo"), path("cabinet/photo/delete/", views.cabinet_delete_photo, name="cabinet_delete_photo"), # Каталог path("profiles/", views.profile_list, name="profiles"), path("profiles//", views.profile_detail, name="profile_detail"), path("profiles//like/", views.like_profile, name="like_profile"), # Регистрация и авторизация path('register/', views.register_view, name='register'), path('login/', views.login_view, name='login'), path('logout/', views.logout_view, name='logout'), ]