Top "Django-rest-framework" questions

A powerful and flexible toolkit for building RESTful Web APIs.

Django Rest Framework File Upload

I am using Django Rest Framework and AngularJs to upload a file. My view file looks like this: class ProductList(…

python django angularjs django-rest-framework
Django Rest Framework -- no module named rest_framework

I've installed django rest framework using pip install djangorestframework yet I still get this error when I run "python3 manage.…

python django python-3.x pip django-rest-framework
OperationalError, no such column. Django

I am very new to django and was able to finish the tutorial on djangoproject.com without any errors. I …

python django django-rest-framework
How can I enable CORS on Django REST Framework

How can I enable CORS on my Django REST Framework? the reference doesn't help much, it says that I can …

python django cors django-rest-framework middleware
Retrieving a Foreign Key value with django-rest-framework serializers

I'm using the django rest framework to create an API. I have the following models: class Category(models.Model): name = …

python django django-rest-framework
Django REST Framework: adding additional field to ModelSerializer

I want to serialize a model, but want to include an additional field that requires doing some database lookups on …

django rest django-rest-framework
"Post Image data using POSTMAN"

I am trying to POST data to my API. I have a model with an image field where: image = models.…

django django-models django-rest-framework postman
Django Rest Framework - Authentication credentials were not provided

I'm developing an API using Django Rest Framework. I'm trying to list or create an "Order" object, but when i'm …

python django django-rest-framework
Django Rest Framework remove csrf

I know that there are answers regarding Django Rest Framework, but I couldn't find a solution to my problem. I …

django django-rest-framework csrf django-csrf
Django REST Framework custom fields validation

I am trying to create custom validation for a model, to check that its start_date is before its end_…

django django-rest-framework