init
This commit is contained in:
parent
298a398c2e
commit
9f90d357fd
6 changed files with 78 additions and 0 deletions
21
app/__init__.py
Normal file
21
app/__init__.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from flask import Flask, render_template
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from flask_migrate import Migrate
|
||||
from app.config import Config
|
||||
|
||||
db = SQLAlchemy()
|
||||
migrate = Migrate()
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(Config)
|
||||
|
||||
db.init_app(app)
|
||||
migrate.init_app(app,db)
|
||||
|
||||
from app import models #.models import Vendor, LineItem, BudgetCategory
|
||||
from app import routes
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue