def add_event(): form = VRForms.addevent() if form.validate_on_submit(): event_id = VRDB.event_add(name=request.form['name'], date=request.form['date'], description=request.form['description']) app.logger.debug('moo') # XXX return redirect(url_for('event', event_id=event_id)) return render_template('add_event.html', form=form)