Python and JS – The view function did not return a valid response

TypeError: The view function did not return a valid response.

Error

TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a float.

Solution

In our JavaScript we need return the string – str():

return str(market)

Leave a Reply

Write your comment if you have something on the topic of the current article:
"Python and JS – The view function did not return a valid response"