Answer the question
In order to leave comments, you need to log in
How does flash work in Flask and Django?
form = UpdateAccount()
if form.validate_on_submit():
current_user.username = form.username.data
current_user.email = form.email.data
db.session.commit()
flash('Успешно обновлено', 'success')
return redirect(url_for('account'))
flash('Успешно обновлено', 'success')
Answer the question
In order to leave comments, you need to log in
It is stored in cookies or session. Take it and go to the source .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question