How to mark a DRF ViewSet action as being exempt from the application of a custom middleware?
I’ve created a Custom Django Middleware and added to the MIDDLEWARE
settings variable correctly.
Why raising serializers.ValidationError() is causing UnicodeDecodeError?
I am creating a django rest API(with a ImageField) and it is working fine. But I want to add some validations to some CharFields fields. I noticed some unicodeDecoderError while added a validator or simply raising a validation error. Spent quite a lot of time trying to solve it. Any help will be appreciated.
How to logout with django rest framework?
I have a django rest framework. And I am using
Nested Serializer Doesn’t work as expected in pytest
I have this serializer class.
How to add permissions in django admin panel for user?
I have a django app. And I added in the admin panel of django the following permission:
How to show permissions in django admin project?
I have a django app. And I try in the admin panel of django restrict user permissions with the AUTHENTICATION AND AUTHORIZATION tab.
How to fix the “Required field” error when submitting a form with images to the Django Rest Framework
I created a serializer to create a description and a photo:
How to serialize a related model at depth 2 without serializing intermediate model at depth 1?
I have three models with foreign keys in this direction Order -> Customer -> User
. I would like to write a view set for orders that serializes the corresponding user without the intermediate customer.
I am getting an “invalid user or password” error while testing a API
I am trying to built an log in API but getting a a “invalid user or password” error while testing. I have checked the database and user and password is correct and exists and correct.
Django-Rest-FrameWork Post-Foreignkey
I am using DRF(Django-Rest-Framework)
my Models.py