URLField serializer 400 Response #8330
Unanswered
coolbreeze2
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a test. Why requests 400?
rest_framework\serializers.py->ModelSerializer->serializer_field_mapping->models.URLField: URLField->rest_framework\fields.py->URLField->URLValidator->django\core\validators.py->URLValidator
django\db\models\fields\__init__.py->URLField->URLValidator->django\core\validators.py->URLValidator
Both of them use the same
URLValidator
.But it's ok in
python manage.py shell
models.py
serializers.py
views.py
Beta Was this translation helpful? Give feedback.
All reactions