Questions tagged [django-rest-framework]
Django REST framework is a powerful and flexible toolkit for building RESTful Web APIs. Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.
django-rest-framework
31,906
questions
0
votes
0
answers
15
views
How does DRF de-serializes the json?
I am using react as frontend and django as backend.
I have used fetch API to send send POST request to the server. The data is passed through JSON.stringify().
This request will be intercepted by ...
0
votes
0
answers
5
views
I get a ProgrammingError when connecting Django and postgresql
What we want to accomplish.
I want to get the data of Category table from postgresql using Django's rest framework.
Problems/Unknown Issues
When I try to access the db using api, I get a ...
0
votes
2
answers
21
views
"detail": "Not Found" Error With Python Django REST API
Im having an issue with a Python Django REST API i've built that manages the file upload and retreival from and to a Google Cloud SQL DB. I am not exactly sure whats causing the error but whene i run ...
-1
votes
0
answers
21
views
Django Rest Framework RetrieveUpdateAPIView not working
I'm having an issue with using RetrieveUpdateAPIView and RetrieveDestroyAPIView. I'm trying to Update or Delete a Newsletter object while logged in as an administrator. Unfortunately, after clicking '...
0
votes
2
answers
42
views
Where to write validation in django? [closed]
What is the best practice to write the validation in django project?
Is writing validation in serializer or in models better?
I have tried both for writing validation but still I am unable to choose ...
-2
votes
0
answers
22
views
How do fetch the real time latitude and longitude in Django and display that as a tracking map in the template? [closed]
I want to fetch the real time latitude and longitude from the Kotlin.
I just want to display the real time latitude and longitude as a map in a template by using a Django frame work how do I do this? ...
0
votes
1
answer
33
views
django-rest-framework-datatables server side FieldError: Cannot resolve keyword '0' into field
I have followed the docs from here: https://django-rest-framework-datatables.readthedocs.io/
I am getting this error:
django.core.exceptions.FieldError: Cannot resolve keyword '0' into field. Choices ...
0
votes
0
answers
15
views
Running Scrapy via subprocess.run doesn't run via frontend api only runs via thunderclient and the likes
So i have a scapy spider nd i integrated it with my drf project by using subprocess.run but there's an issue the api call only runs successfully when i test it with thunderclient but when i try it by ...
0
votes
0
answers
22
views
Trying to implement Google login on my django-restframework - Vue app but keep getting redirect_uri_mismatch
Title is self explanatory. I have tried every which way to take a crack at this, but kept getting the same error, no matter what I tried for days. Troubleshooting has been difficult due to me not ...
1
vote
1
answer
23
views
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 ...
0
votes
1
answer
16
views
DRF how to choose serializer for a field based on value of another field
So the problem is I would like to choose the serializer to be used to serialize a particular field based on the value of another field, so for example (pseudocode):
class SerializerA(serializers....
0
votes
0
answers
22
views
How to retrieve the mobile number linked to an any user Aadhaar card using DigiLocker APIs in Django Rest Framework? [closed]
Is there a built-in API in DigiLocker to get the mobile number linked to an Aadhaar card?
What is the procedure to integrate DigiLocker APIs with a Django Rest Framework (DRF) project?
Are there any ...
0
votes
1
answer
67
views
Issue with Django API Authentication Using Azure AD and Postman
I have set up a django project using the django_auth_adfs library to use the Azure Active Directory for the authentication phase. I have set up its API using rest_framework and now, I am trying to ...
0
votes
0
answers
29
views
Getting CORS Error for only DELETE Request (Have no issues with PUT, POST and GET) DRF and React project
I have been facing this following error whenever I make the request from my react.js frontend. I am using django DRF on backend and nginx as reverse proxy. Both are deployed in gcp cloud run as ...
0
votes
0
answers
24
views
How to do ci-cd of Django DRF application through Github to AWS?
Before deploying my django drf server i need to test it during production phase so i need to host my django drf project in github and so through ci-cd to aws. So is it need to be dockerized before ...