all repos — donkey @ dc80dc1a0d50b02336a12040d4dd62baa2f20000

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