WebAdminPanel/app.py

24 lines
475 B
Python
Raw Normal View History

2022-08-29 12:10:44 -04:00
from flask import Flask
2022-11-26 12:22:25 -05:00
import logging
2022-08-29 12:10:44 -04:00
2023-02-27 06:38:43 -05:00
from apps import statistics_app
from apps import auth_app
from apps import admin_app
2022-12-11 08:51:44 -05:00
2022-11-26 12:22:25 -05:00
from config import secret_key
2022-08-29 12:10:44 -04:00
app = Flask(__name__)
2022-11-26 12:22:25 -05:00
app.secret_key = secret_key
2022-08-29 12:10:44 -04:00
2023-02-27 06:38:43 -05:00
app.register_blueprint(auth_app)
app.register_blueprint(admin_app)
app.register_blueprint(statistics_app)
2022-08-29 12:10:44 -04:00
if __name__ == '__main__':
2022-11-26 12:22:25 -05:00
from database import build_database
build_database()
2022-08-29 12:10:44 -04:00
logging.info("Build database models")
2022-12-02 16:12:00 -05:00
2023-02-27 06:38:43 -05:00
app.run(host="0.0.0.0")