odapi/app/__init__.py

14 lines
330 B
Python
Raw Normal View History

2020-03-23 21:17:16 +01:00
from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_marshmallow import Marshmallow
2020-03-23 21:17:16 +01:00
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
ma = Marshmallow(app)
2020-03-23 21:17:16 +01:00
2020-04-28 20:49:13 +02:00
from app import routes, models, schema