Flask Value error view function did not return a response [duplicate]

Solution 1:

The following does not return a response:

You must return anything like return afunction() or return 'a string'.

This can solve the issue

Solution 2:

You are not returning a response object from your view my_form_post. The function ends with implicit return None, which Flask does not like.

Make the function my_form_post return an explicit response, for example

return 'OK'

at the end of the function.