from flask import Flask from flask_login import current_user, login_manager from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) login = login_manager db = SQLAlchemy() db.init_app(app) login.init_app(app) login.login_view = 'index.html' @app.route('/') def index(): if not current_user: return render_themed_template('login.html') return "