summaryrefslogtreecommitdiff
path: root/jimbrella/web.py
blob: 95d102062b94a7c1b0a9d2f020e57aa61a1e1352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 config

# this logger is shared across modules
# logging.basicConfig(filename=LOG_PATH, level=logging.DEBUG)

app = Flask("jimbrella")
app.secret_key = config.get("security", "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()