import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_security import Security, SQLAlchemyUserDatastore, login_required

app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])

db = SQLAlchemy(app)
from models import User, Role
from player import api

# Setup Flask-Security
user_datastore = SQLAlchemyUserDatastore(db, User, Role)
security = Security(app, user_datastore)


@app.route('/')
@login_required
def index():
    return 'Hello World'


if __name__ == '__main__':
    app.run()

61d8aa76333b61c13e5ea03bc4753dc11f4e9e21
<mask token>


@app.route('/')
@login_required
def index():
    return 'Hello World'


<mask token>

<mask token>
app.config.from_object(os.environ['APP_SETTINGS'])
<mask token>


@app.route('/')
@login_required
def index():
    return 'Hello World'


if __name__ == '__main__':
    app.run()

<mask token>
app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])
db = SQLAlchemy(app)
<mask token>
user_datastore = SQLAlchemyUserDatastore(db, User, Role)
security = Security(app, user_datastore)


@app.route('/')
@login_required
def index():
    return 'Hello World'


if __name__ == '__main__':
    app.run()

import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_security import Security, SQLAlchemyUserDatastore, login_required
app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])
db = SQLAlchemy(app)
from models import User, Role
from player import api
user_datastore = SQLAlchemyUserDatastore(db, User, Role)
security = Security(app, user_datastore)


@app.route('/')
@login_required
def index():
    return 'Hello World'


if __name__ == '__main__':
    app.run()

import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_security import Security, SQLAlchemyUserDatastore, login_required

app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])

db = SQLAlchemy(app)
from models import User, Role
from player import api

# Setup Flask-Security
user_datastore = SQLAlchemyUserDatastore(db, User, Role)
security = Security(app, user_datastore)


@app.route('/')
@login_required
def index():
    return 'Hello World'


if __name__ == '__main__':
    app.run()
