Pastebin
Paste #3191: No description
< previous paste - next paste>
Pasted by Anonymous Coward
@app.route("/admin/settings", methods=["GET", "POST"]) def admin_settings(): cssform = AdminCssForm() if cssform.validate_on_submit(): set_setting(id = 'usercss', value=cssform.cssdata.data) return render_template("admin_settings.html", cssform=cssform) ==== CHAGNED TO ==== @app.route("/admin/settings", methods=["GET", "POST"]) def admin_settings(): cssform = None cssform = AdminCssForm() if cssform.validate_on_submit(): set_setting(id = 'usercss', value=cssform.cssdata.data) return render_template("admin_settings.html", cssform=cssform)
New Paste
Go to most recent paste.