On 17/01/16 23:15, sudipto manna wrote: > Hi All, > I am running a python flask project for fetching the endpoint. > > Please find the files attached.
OK, This is a text based mailing list so attachments tend not to make it through the server. If they are not too long post them here, or if they are bigger put them on a pastebin. However... Flask is not part of the standard library so a little bit off topic for this list, you may be better off asking on the Flask support forum. Howe er it is a common framework so somebody here might be able to help. > When the endpoint file is executed its returning this error: > "if request.method == 'GET': NameError: global name 'request' is not > defined" We really need to see the full error trace and the full context around the reported fault - ideally the full file. The probability is that the error is telling the truth and 'request' is not defined yet. Is it part of Flask? Should you have prepended the module name? Is the spelling/case correct? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor