Top "Django-rest-framework" questions

A powerful and flexible toolkit for building RESTful Web APIs.

Django REST Framework serializer field required=false

from the documentation: read_only Set this to True to ensure that the field is used when serializing a representation, …

python django rest django-rest-framework
Django REST framework: non-model serializer

I am beginner in Django REST framework and need your advice. I am developing a web service. The service has …

django rest django-rest-framework
Django Rest Framework, passing parameters with GET request, classed based views

I would like a user to send a GET request to my Django REST API: 127.0.0.1:8000/model/?radius=5&longitude=50&…

django django-rest-framework
Pass request context to serializer from Viewset in Django Rest Framework

I have a case where the values for a serializer field depend on the identity of the currently logged in …

django django-rest-framework serialization
SocketException: OS Error: Connection refused, errno = 111 in flutter using django backend

I m building a flutter app with django rest-framework. The registration api is working fine in Postman but after some …

django flutter django-rest-framework pythonanywhere
Disable a method in a ViewSet, django-rest-framework

ViewSets have automatic methods to list, retrieve, create, update, delete, ... I would like to disable some of those, and the …

python django django-views django-rest-framework
How to return custom JSON in Django REST Framework

I am trying to return custom json with get_queryset but always get 404 error in response. class TestViewSet(viewsets.ModelViewSet): """ …

python json django django-rest-framework
Django Rest Framework: turn on pagination on a ViewSet (like ModelViewSet pagination)

I have a ViewSet like this one to list users' data: class Foo(viewsets.ViewSet): def list(self, request): queryset = …

python django django-rest-framework
How Can I Disable Authentication in Django REST Framework

I'm working on a store site, where every user is going to be anonymous (well, until it's time to pay …

authentication django-rest-framework