app_rv = app(environ, start_response) TypeError: 'dict' object is not callable The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a dict. code example

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

For VScode perform these steps
install
https://marketplace.visualstudio.com/items?itemName=humao.rest-client

Read
https://brianbunke.com/blog/2019/09/16/rest-client-vs-code/