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_socketio import SocketIO,send
import logging
from logging.handlers import SMTPHandler
from flask_mail import Mail

logging.basicConfig(level=logging.DEBUG)
#general configs
app=Flask(__name__)
app.config.from_object(config)
from flask_socketio import SocketIO,send
socketio=SocketIO(app,engineio_logger=True,logger=True)
#DB Configs
db=SQLAlchemy(app)
migrate=Migrate(app,db)
#Login Configs
login=LoginManager(app)
login.login_view='login'
login.message='Please Login To Access The Page'
login.login_message_category='info'
mail = Mail(app)
if not app.debug:
    if app.config['MAIL_SERVER']:
        auth = None
        if app.config['MAIL_USERNAME'] or app.config['MAIL_PASSWORD']:
            auth = (app.config['MAIL_USERNAME'], app.config['MAIL_PASSWORD'])
        secure = None
        if app.config['MAIL_USE_TLS']:
            secure = ()
        mail_handler = SMTPHandler(
            mailhost=(app.config['MAIL_SERVER'], app.config['MAIL_PORT']),
            fromaddr='no-reply@' + app.config['MAIL_SERVER'],
            toaddrs=app.config['ADMINS'], subject='CELIS INTERNAL SERVER ISSUES',
            credentials=auth, secure=secure)
        mail_handler.setLevel(logging.ERROR)
        app.logger.addHandler(mail_handler)


from app import routes,models

2f106984c1ffbdbfa3ede09e5a58743fafc6adf3
<mask token>

<mask token>
logging.basicConfig(level=logging.DEBUG)
<mask token>
app.config.from_object(config)
<mask token>
if not app.debug:
    if app.config['MAIL_SERVER']:
        auth = None
        if app.config['MAIL_USERNAME'] or app.config['MAIL_PASSWORD']:
            auth = app.config['MAIL_USERNAME'], app.config['MAIL_PASSWORD']
        secure = None
        if app.config['MAIL_USE_TLS']:
            secure = ()
        mail_handler = SMTPHandler(mailhost=(app.config['MAIL_SERVER'], app
            .config['MAIL_PORT']), fromaddr='no-reply@' + app.config[
            'MAIL_SERVER'], toaddrs=app.config['ADMINS'], subject=
            'CELIS INTERNAL SERVER ISSUES', credentials=auth, secure=secure)
        mail_handler.setLevel(logging.ERROR)
        app.logger.addHandler(mail_handler)
<mask token>

<mask token>
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
app.config.from_object(config)
<mask token>
socketio = SocketIO(app, engineio_logger=True, logger=True)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
login = LoginManager(app)
login.login_view = 'login'
login.message = 'Please Login To Access The Page'
login.login_message_category = 'info'
mail = Mail(app)
if not app.debug:
    if app.config['MAIL_SERVER']:
        auth = None
        if app.config['MAIL_USERNAME'] or app.config['MAIL_PASSWORD']:
            auth = app.config['MAIL_USERNAME'], app.config['MAIL_PASSWORD']
        secure = None
        if app.config['MAIL_USE_TLS']:
            secure = ()
        mail_handler = SMTPHandler(mailhost=(app.config['MAIL_SERVER'], app
            .config['MAIL_PORT']), fromaddr='no-reply@' + app.config[
            'MAIL_SERVER'], toaddrs=app.config['ADMINS'], subject=
            'CELIS INTERNAL SERVER ISSUES', credentials=auth, secure=secure)
        mail_handler.setLevel(logging.ERROR)
        app.logger.addHandler(mail_handler)
<mask token>

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_socketio import SocketIO, send
import logging
from logging.handlers import SMTPHandler
from flask_mail import Mail
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
app.config.from_object(config)
from flask_socketio import SocketIO, send
socketio = SocketIO(app, engineio_logger=True, logger=True)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
login = LoginManager(app)
login.login_view = 'login'
login.message = 'Please Login To Access The Page'
login.login_message_category = 'info'
mail = Mail(app)
if not app.debug:
    if app.config['MAIL_SERVER']:
        auth = None
        if app.config['MAIL_USERNAME'] or app.config['MAIL_PASSWORD']:
            auth = app.config['MAIL_USERNAME'], app.config['MAIL_PASSWORD']
        secure = None
        if app.config['MAIL_USE_TLS']:
            secure = ()
        mail_handler = SMTPHandler(mailhost=(app.config['MAIL_SERVER'], app
            .config['MAIL_PORT']), fromaddr='no-reply@' + app.config[
            'MAIL_SERVER'], toaddrs=app.config['ADMINS'], subject=
            'CELIS INTERNAL SERVER ISSUES', credentials=auth, secure=secure)
        mail_handler.setLevel(logging.ERROR)
        app.logger.addHandler(mail_handler)
from app import routes, models

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_socketio import SocketIO,send
import logging
from logging.handlers import SMTPHandler
from flask_mail import Mail

logging.basicConfig(level=logging.DEBUG)
#general configs
app=Flask(__name__)
app.config.from_object(config)
from flask_socketio import SocketIO,send
socketio=SocketIO(app,engineio_logger=True,logger=True)
#DB Configs
db=SQLAlchemy(app)
migrate=Migrate(app,db)
#Login Configs
login=LoginManager(app)
login.login_view='login'
login.message='Please Login To Access The Page'
login.login_message_category='info'
mail = Mail(app)
if not app.debug:
    if app.config['MAIL_SERVER']:
        auth = None
        if app.config['MAIL_USERNAME'] or app.config['MAIL_PASSWORD']:
            auth = (app.config['MAIL_USERNAME'], app.config['MAIL_PASSWORD'])
        secure = None
        if app.config['MAIL_USE_TLS']:
            secure = ()
        mail_handler = SMTPHandler(
            mailhost=(app.config['MAIL_SERVER'], app.config['MAIL_PORT']),
            fromaddr='no-reply@' + app.config['MAIL_SERVER'],
            toaddrs=app.config['ADMINS'], subject='CELIS INTERNAL SERVER ISSUES',
            credentials=auth, secure=secure)
        mail_handler.setLevel(logging.ERROR)
        app.logger.addHandler(mail_handler)


from app import routes,models
