17 lines
393 B
Python
17 lines
393 B
Python
import os
|
|
from flask import Flask
|
|
|
|
# from flask_sqlalchemy import SQLAlchemy
|
|
# db = SQLAlchemy()
|
|
# migrate = Migrate()
|
|
|
|
|
|
def create_app():
|
|
APP = Flask(__name__)
|
|
# APP.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///data/crunk_data.db"
|
|
# APP.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
|
|
# db.init_app(APP)
|
|
# migrate.init_app(APP, db, render_as_batch=True)
|
|
|
|
return APP
|