WebAdminPanel/app.py

24 lines
475 B
Python

from flask import Flask
import logging
from apps import statistics_app
from apps import auth_app
from apps import admin_app
from config import secret_key
app = Flask(__name__)
app.secret_key = secret_key
app.register_blueprint(auth_app)
app.register_blueprint(admin_app)
app.register_blueprint(statistics_app)
if __name__ == '__main__':
from database import build_database
build_database()
logging.info("Build database models")
app.run(host="0.0.0.0")