python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Django - BaseSerializer.is_valid() missing 1 required positional argument: 'self'
I am creating a base viewset class and trying to use it in two classes.
The viewset has a create method which uses the get_serializer_class() to get the serialzer and creates the object.
But the is_va...
Sardar Faisal
Votes: 0
Answers: 1
Django REST Framework reverse() not finding match for router's "{basename}-detail"
This question is extremely similar to: How to fix this NoReverseMatch exception in Django rest frameworks routers? but that hasn't been answered/resolved and after a lot of investigating here I am loo...
veziop
Votes: 0
Answers: 1
DRF: How to pass extra context data to serializers
I was searching the net and found the similar problem but it doesn't work in my case, Idk why.
I try to put some extra data to context in serializer, but get only 3 default fields: request, view and f...
max_bstr
Votes: 0
Answers: 2
Deploying Django API on Heroku- after changing DEBUG = False (in settings.py) and deploying my app, URLconf defined in URLS.PY are not listed
I have created Django API with three apps (users, task, house) with with help of routers show data in ViewSets. Some of these routers have to register multiple ViewSets.
When testing endpoints both lo...
Sanna
Votes: 0
Answers: 1