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 ():

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *