from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_cors import CORS

app = Flask(__name__)
CORS(app, supports_credentials=True)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
login = LoginManager(app)
from models import User, Deck

import routes

# Everything below only required for `flask shell` to play with database
from api import db


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Deck': Deck}

082bb968831b67a180f6e8124b4787af09a8bab1
<mask token>


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Deck': Deck}

<mask token>
CORS(app, supports_credentials=True)
app.config.from_object(Config)
<mask token>


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Deck': Deck}

<mask token>
app = Flask(__name__)
CORS(app, supports_credentials=True)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
login = LoginManager(app)
<mask token>


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Deck': Deck}

from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_cors import CORS
app = Flask(__name__)
CORS(app, supports_credentials=True)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
login = LoginManager(app)
from models import User, Deck
import routes
from api import db


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Deck': Deck}

from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_cors import CORS

app = Flask(__name__)
CORS(app, supports_credentials=True)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
login = LoginManager(app)
from models import User, Deck

import routes

# Everything below only required for `flask shell` to play with database
from api import db


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Deck': Deck}
