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

18
profiles/views.py Normal file
View File

@ -0,0 +1,18 @@
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import authentication, permissions, status
from rest_framework.authentication import SessionAuthentication
from django.core import serializers
class BlockView(APIView):
permission_classes = (permissions.IsAuthenticated,)
authentication_classes = (SessionAuthentication,)
def post(self, request, pk):
pass
def get(self, request, pk):
pass
def delete(self, request, pk):
pass