1
The get
method on Django’s Test Client takes a relative path as an argument. Have you tried response = c.get('/v1/ping/')
?
1
I found the error: I use rest_framework_swagger
and there was a test file in it. I deleted it and everything is OK now.
- [Answered ]-Django. Override the html format of a FileField field in the change page via ModelAdmin
- [Answered ]-Update data in a JsonField django
Source:stackexchange.com