Issue #7 invalid

global name 'xsrf' is not defined

Anonymous created an issue

I have followed all tutorials about xsrf and wheezy template, i just see they use @xsrf() in template, i do it but i always get xsrf is not defined, could it be a bug? since i do it exactly i see in every tutorial.

class PruebaHandler(BaseHandler): def get(self): resp = HTTPResponse() resp.write(engine.get_template('untitled.html').render(None)) return resp

<!DOCTYPE html> <html> <head> <title>Convert Image</title> </head> <body> <form method="post" action="http://localhost:8080/app/conv-image"> @xsrf() <input type="hidden" name="toro" value="7"> <input type="submit" value="Convertir"> </form> </body> </html>

Comments (2)

  1. Log in to comment