Spaces:
Sleeping
Sleeping
Update app/apps/emotion_recognition/views.py
Browse files
app/apps/emotion_recognition/views.py
CHANGED
@@ -5,7 +5,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin
|
|
5 |
from django.views.generic import UpdateView, DeleteView
|
6 |
from django.contrib import messages
|
7 |
from django.urls import reverse_lazy
|
8 |
-
from django.views.decorators.csrf import
|
9 |
|
10 |
from rest_framework.views import APIView
|
11 |
from rest_framework.response import Response
|
@@ -19,7 +19,7 @@ from .tasks import proccess_uploaded_image, process_image_from_api, convert_imag
|
|
19 |
from .forms import RecognitionEditForm
|
20 |
|
21 |
|
22 |
-
@
|
23 |
@require_http_methods(['GET', 'POST'])
|
24 |
def index(request):
|
25 |
try:
|
|
|
5 |
from django.views.generic import UpdateView, DeleteView
|
6 |
from django.contrib import messages
|
7 |
from django.urls import reverse_lazy
|
8 |
+
from django.views.decorators.csrf import csrf_exempt
|
9 |
|
10 |
from rest_framework.views import APIView
|
11 |
from rest_framework.response import Response
|
|
|
19 |
from .forms import RecognitionEditForm
|
20 |
|
21 |
|
22 |
+
@csrf_exempt
|
23 |
@require_http_methods(['GET', 'POST'])
|
24 |
def index(request):
|
25 |
try:
|