mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-21 18:44:54 +00:00
14 lines
290 B
Python
14 lines
290 B
Python
from flask import Flask
|
|
from server.extensions import db, migrate, cache
|
|
from server.views import blueprint
|
|
|
|
app = Flask(__name__)
|
|
app.config.from_pyfile('config.py')
|
|
|
|
db.init_app(app)
|
|
migrate.init_app(app, db)
|
|
cache.init_app(app)
|
|
|
|
db.create_all(app=app)
|
|
|
|
app.register_blueprint(blueprint)
|