all repos — donkey @ 2a98ded5cd847a031cc1e97ddb64aa452cb213b0

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