Add 'app/init.py'
This commit is contained in:
parent
3341e6d1d6
commit
6bf3504df1
9
app/init.py
Normal file
9
app/init.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
from flask import Flask
|
||||||
|
from flask_sqlalchemy import SQLAlchemy
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
app.config.from_pyfile('config.py')
|
||||||
|
|
||||||
|
db = SQLAlchemy(app)
|
||||||
|
|
||||||
|
from app import routes
|
Loading…
Reference in New Issue
Block a user