perehodit
@perehodit

Есть 3 функции почему возвращает index.html?

1 функция

@app.route('/')
def index():
	checkConfirm(current_user)
	return render_template('index.html')

2 функция
def checkConfirm(user):
	if user.verification == True and user.is_authenticated :
		print('kek')
		return redirect(url_for('reg.confirmed'))


print('kek') работает

3 функция
@reg.route('/confirmed')
def confirmed():
	return render_template('reg/confirm.html')
  • Вопрос задан
  • 118 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы