all repos — donkey @ 924f43708d675e88632f81eb607a680c353f562d

The main backend for forlater.email

app/__init__.py (view raw)

 1from flask import Flask
 2from flask_mail import Mail
 3
 4mail = Mail()
 5
 6
 7def init_app():
 8    app = Flask(__name__)
 9    app.config.from_object("config.Config")
10    mail.init_app(app)
11
12    with app.app_context():
13        from . import main
14
15    return app