init
This commit is contained in:
12
__init__.py
Normal file
12
__init__.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from flask import Flask
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
app = Flask(__name__)
|
||||
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
|
||||
|
Reference in New Issue
Block a user