P
P
perehodit2019-11-12 15:23:24
Flask
perehodit, 2019-11-12 15:23:24

There are 3 functions why returns index.html?

1 function

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

2 function
def checkConfirm(user):
  if user.verification == True and user.is_authenticated :
    print('kek')
    return redirect(url_for('reg.confirmed'))

print('kek') works
3 function
@reg.route('/confirmed')
def confirmed():
  return render_template('reg/confirm.html')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2019-11-12
@perehodit

Well, your checkConfirm function processed it, but where do you use its result?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question