def signup(): form = SignupForm() if form.validate_on_submit(): signup = Signups(nome=form.nome.data, mensagem=form.mensagem.data, date_signed_up=datetime.datetime.now()) db_session.add(signup) db_session.commit() return render_template('signup.html', form=form)
def signup(): form = SignupForm() if form.validate_on_submit(): signup = Signups(name=form.name.data, email=form.email.data, date_signed_up=datetime.datetime.now()) db_session.add(signup) db_session.commit() return redirect(url_for('success')) return render_template('signup.html', form=form)
def signup(): form = SignupForm() if form.validate_on_submit(): signup = Signups(name=form.name.data, email=form.email.data, date_signed_up=datetime.datetime.now()) db_session.add(signup) db_session.commit() records = Signups.query.all() return render_template('record.html', records=records) return render_template('signup.html', form=form)