@app.errorhandler(CSRFError)
def csrf_error_handle(e):
    return (render_template('error.html', description=e.description, code=e.code), 400)
@app.errorhandler(CSRFError)
def csrf_error_handle(e):
    return (render_template('error.html', description=e.description, code=e.code), 400)