summaryrefslogtreecommitdiff
path: root/jimbrella/web.py
blob: dda2d9f1a5ff067a320aa68629d4090121a354cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import logging
from flask import Flask
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, encoding="utf-8", level=logging.DEBUG)

app = Flask("jimbrella")
app.secret_key = FLASK_SECRET_KEY
app.register_blueprint(admin_bp)
app.register_blueprint(auth_bp)

if __name__ == "__main__":
    app.run()