def settings(): form = ConfigForm() if request.method == 'POST': form.update_db() form.load() return render_template("settings.html", title="Alert Config", form=form)