Skip to content
Advertisement

NameError: name ‘request’ is not defined

I got this Python Code, and somehow I get the Error Message:

JavaScript

But I really can’t find my mistake. Can someone please help me with that?

JavaScript

Advertisement

Answer

You appear to have forgotten to import the flask.request request context object:

JavaScript
Advertisement