On 17Jan2016 20:13, sudipto manna <sudipto...@gmail.com> wrote:
Here is the code snippet:

File#FlaskTest2.py

from flask import Flask

You need to import "request" from flask as well:

 from flask import Flask, request

For others on this list: the Flask framework presents the current web request as a thread local global called "request"; simplifies writing handlers as the request information is readily available without having to pass it through function calls.

Cheers,
Cameron Simpson <c...@zip.com.au>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to