Django Rest Framework – Nested Serializer Attribute error in response
wondering if someone could help me with the following problem.
Django Rest Framework – Nested Serializer Attribute error in response
wondering if someone could help me with the following problem.
Django Rest Framework – Nested Serializer Attribute error in response
wondering if someone could help me with the following problem.
Django Rest Framework – Nested Serializer Attribute error in response
wondering if someone could help me with the following problem.
Django Rest Framework – Nested Serializer Attribute error in response
wondering if someone could help me with the following problem.
“detail”: “Authentication credentials were not provided.” postman django
Trying to do authorization on tokens
When I make a POST request through postman it gives an error
"detail": "Authentication credentials were not provided."
ModuleNotFoundError: No module named ‘django.contrib.contenttyfrom datetime import timedelta’
I try to do a migration “python manage.py makemigrations ” but I get an error
DRF error serializing many to many relation
The error occurs after inserting the DetallePedido record, the serializer is looking for the fields ‘producto’ and ‘cantidad’. And it receives a Producto object and an integer (cantidad) and it is looking for the field ‘producto’ inside the Producto object, that’s why the error occurs. And at the end of the create() function it sends the Pedido object with the empty detalles_pedido attribute which is where the DetallePedido records should be stored. Any idea how to fix it?
DRF error serializing many to many relation
The error occurs after inserting the DetallePedido record, the serializer is looking for the fields ‘producto’ and ‘cantidad’. And it receives a Producto object and an integer (cantidad) and it is looking for the field ‘producto’ inside the Producto object, that’s why the error occurs. And at the end of the create() function it sends the Pedido object with the empty detalles_pedido attribute which is where the DetallePedido records should be stored. Any idea how to fix it?
Is this django test project rejected because of code structure?
Hello Dear Python Community,