@app.route('/login')
def login_view():
 redirect_uri = request.values.get('redirect_uri', url_for('account_view', _external=True))
 return render_template('login.html', title='Login', year=datetime.now().year, message='Your login page.', redirect_uri=redirect_uri)

@ app . route ( '/login' ) def login_view ( ) : redirect_uri = request . values . get ( 'redirect_uri' , url_for ( 'account_view' , _external = True ) ) return render_template ( 'login.html' , title = 'Login' , year = datetime . now ( ) . year , message = 'Your login page.' , redirect_uri = redirect_uri )
renders the login page .