- you can get data normally by using postman request.
- request using web page with error message:
{"detail": "CSRF Failed: CSRF cookie not set."}
how to solve this?
{"detail": "CSRF Failed: CSRF cookie not set."}
how to solve this?
first check in the browser to see if there is a csrftoken cookie,. If not, you need to see why the cookie is not set, such as whether the django.middleware.csrf.CsrfViewMiddleware is deleted in the MIDDLEWARE.
there is no problem with uploading small files on (iOS, Android) on mobile devices, but there are some larger files (more than 50m). After the upload progress is completed, it will take a long time for the server to return response information, and some...
an interface: http: 127.0.0.1:8000 api v1 course corresponds to the following processing view class CourseView(APIView): -sharp renderer_classes = [JSONRenderer,] def get(self, request, *args, **kwargs): ret = {"code": 1} ...
I have a django rest framework project that has some API interfaces exposed to users. Now we need to automatically test the correctness of these interfaces every day. Is there any way to do this? ...
I saw a paging method on the Internet: def get(self, request, format=None): -sharp roles = Product.objects.all() -sharp pg = PageNumberPagination() -sharp page_roles = pg.paginate_queryset(queryset...