from flask import Flask from os import urandom from apps.admin import admin as blueprint_admin from apps.auth import auth as blueprint_auth from database.models import build_models import logging app = Flask(__name__) app.secret_key = urandom(24) app.register_blueprint(blueprint_auth) app.register_blueprint(blueprint_admin) if __name__ == '__main__': logging.info("Build database models") build_models() app.run(host="0.0.0.0")