from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager

# Create flask app
app = Flask(__name__)
# Set config file location
app.config.from_object('config')
# Create database app
db = SQLAlchemy(app)
# Create login app
lm = LoginManager()
lm.init_app(app)
lm.login_view = 'login'
# Defer our logic to the view file
from app import views, models, db, app

# Simple startup script for the application
if __name__ == '__main__':
    app.run()

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager

# Create flask app
app = Flask(__name__)
# Set config file location
app.config.from_object('config')
# Create database app
db = SQLAlchemy(app)
# Create login app
lm = LoginManager()
lm.init_app(app)
lm.login_view = 'login'
# Defer our logic to the view file
from app import views, models, db, app

# Simple startup script for the application
if __name__ == '__main__':
    app.run()

# Create flask app # Set config file location # Create database app # Create login app # Defer our logic to the view file # Simple startup script for the application