[Answered ]-Django test returns 404 error

1👍

The get method on Django’s Test Client takes a relative path as an argument. Have you tried response = c.get('/v1/ping/')?

👤kreld

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.

Leave a comment