2023-06-03 18:12:55 +02:00
|
|
|
import os
|
|
|
|
from flask import Flask
|
2023-06-03 19:27:41 +02:00
|
|
|
|
2023-06-03 18:12:55 +02:00
|
|
|
# from flask_sqlalchemy import SQLAlchemy
|
2023-06-03 19:27:41 +02:00
|
|
|
# db = SQLAlchemy()
|
|
|
|
# migrate = Migrate()
|
|
|
|
|
2023-06-03 18:12:55 +02:00
|
|
|
|
|
|
|
def create_app():
|
|
|
|
APP = Flask(__name__)
|
2023-06-03 19:27:41 +02:00
|
|
|
# APP.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///data/crunk_data.db"
|
|
|
|
# APP.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
|
2023-06-03 18:12:55 +02:00
|
|
|
# db.init_app(APP)
|
|
|
|
# migrate.init_app(APP, db, render_as_batch=True)
|
|
|
|
|
|
|
|
return APP
|