Re: [Tutor] if request.method == 'GET': NameError: global name 'request' is not defined

2016-01-18 Thread sudipto manna
Thanks All. The import request was missing and the issue was resolved upon calling that module and initializing it. Thanks for the guidance. Regards, Sudipto Manna On Mon, Jan 18, 2016 at 3:55 AM, Cameron Simpson wrote: > On 17Jan2016 20:13, sudipto manna wrote: > >> Here is the

Re: [Tutor] if request.method == 'GET': NameError: global name 'request' is not defined

2016-01-18 Thread sudipto manna
full_dispatch_request rv = self.dispatch_request() File "/Users/sudiptomanna/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/Users/sudiptomanna/fullstack/vagrant/PythonData/FlaskTe

[Tutor] if request.method == 'GET': NameError: global name 'request' is not defined

2016-01-17 Thread sudipto manna
quest' is not defined" Here we are looking if the FlaskTest2.py file has any GET, POST, DELETE method or not. The error is coming on the terminal(on same Machine 2 working terminals are opened) where the FlaskTest2.py is run. Appreciate the help. Regards, Sudipto Manna