import logging from flask import Flask, render_template from .admin import bp as admin_bp from .auth import bp as auth_bp from .config import * # this logger is shared across modules logging.basicConfig(filename=LOG_PATH, level=logging.DEBUG) app = Flask("jimbrella") app.secret_key = FLASK_SECRET_KEY @app.route("/") def index(): return render_template("index.html") app.register_blueprint(admin_bp) app.register_blueprint(auth_bp) if __name__ == "__main__": app.run()