2023-07-21 16:43:49 +00:00
|
|
|
from flask import Flask
|
|
|
|
from flask_sqlalchemy import SQLAlchemy
|
2023-08-16 00:27:49 +00:00
|
|
|
import os
|
2023-07-21 16:43:49 +00:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
2023-08-16 00:27:49 +00:00
|
|
|
|
|
|
|
config_string = os.environ.get("FLASK_CONFIG", "config.DevelopmentConfig")
|
2023-07-21 16:43:49 +00:00
|
|
|
app.config.from_object("config.DevelopmentConifg")
|
|
|
|
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///app.db"
|
|
|
|
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
|
|
|
|
|
|
|
db = SQLAlchemy(app)
|
|
|
|
|
|
|
|
from . import routes
|
|
|
|
|