browser-go-api/database.py

16 lines
309 B
Python
Raw Normal View History

2019-10-06 00:49:49 +00:00
# ! SQLAlchemy > Marshmallow - these must be imported in this order
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from flask_bcrypt import Bcrypt
# init bcrypt
def bcrypt(app):
Bcrypt(app)
# init database
db = SQLAlchemy()
# init marshmallow
ma = Marshmallow()