Réarrangement du code; correction css; écriture uniquement du nouveau message

This commit is contained in:
2023-12-19 11:27:18 +01:00
parent fb0f9be103
commit acba77e228
27 changed files with 166 additions and 129 deletions

View File

@ -3,9 +3,11 @@ from django.conf import settings
from django.conf.urls.static import static
from . import viewsets
from . import views
urlpatterns = [
path("me", viewsets.MyProfileViewSet.as_view({'patch': 'partial_update', 'get': 'retrieve'}), name="my_profile_page"),
path("<int:pk>", viewsets.ProfileViewSet.as_view({'get': 'retrieve'}), name="profile_page"),
path("", viewsets.ProfileViewSet.as_view({'get': 'list'}), name="profiles_list"),
] + static("/static/avatars/", document_root="./avatars")
path("block", views.BlockView.as_view(), name="block_page"),
] + static("/static/avatars/", document_root="./avatars")