About 187,000 results
Open links in new tab
  1. What is the difference between Django and Django Rest Framework?

    Now, Django vs Django Rest Framework. You can use Django alone to make REST APIs, but you have to write more code and do more design like one of the comment above showing in the …

  2. Django rest framework nested self-referential objects

    Nov 14, 2012 · 75 @wjin's solution was working great for me until I upgraded to Django REST framework 3.0.0, which deprecates to_native. Here's my DRF 3.0 solution, which is a slight …

  3. django - How to store JWT tokens in HttpOnly cookies with DRF ...

    Feb 17, 2021 · from rest_framework_simplejwt.authentication import JWTAuthentication from django.conf import settings from rest_framework.authentication import CSRFCheck from …

  4. How can I enable CORS on Django REST Framework - Stack Overflow

    Mar 3, 2016 · How can I enable CORS on my Django REST Framework? the reference doesn't help much, it says that I can do by a middleware, but how can I do that?

  5. Django Rest Framework - Authentication credentials were not …

    And my URLs: # -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.conf import settings from django.contrib import admin from django.utils.functional …

  6. python - Django Rest Framework File Upload - Stack Overflow

    I am using Django Rest Framework and AngularJs to upload a file. My view file looks like this: class ProductList(APIView): authentication_classes = (authentication.TokenAuthentication,) de...

  7. how to add token auth to swagger + django rest framework?

    I am using both great tools DRF and Django-REST-Swagger, however a few of my API views are under token authentication. So now I'd like to add to my swagger doc page of my API the …

  8. Django Rest Framework: Dynamically return subset of fields

    For nested data, I am using Django Rest Framework with the package recommended in the docs, drf-flexfields This allows you to restrict the fields returned on both the parent and child objects.

  9. python - Django REST framework: method PUT not allowed in …

    This answer is right, Django REST framework: method PUT not allowed in ViewSet with def update (), PUT is not allowed, because DRF expects the instance id to be in the URL.

  10. Django: TemplateDoesNotExist (rest_framework/api.html)

    django django-views django-rest-framework edited Dec 17, 2022 at 4:57 starball ♦ 58.9k 52 306 1k