diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-10 18:29:53 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-10 18:29:53 +0100 |
commit | 50ce677513a06e98a48e236ff008d2015a2c6484 (patch) | |
tree | 1f9edcfb9629ba9544fdab38a1a262a911c1c033 /pyaggr3g470r/__init__.py | |
parent | Removed code related to QR Code generation. (diff) | |
download | newspipe-50ce677513a06e98a48e236ff008d2015a2c6484.tar.gz newspipe-50ce677513a06e98a48e236ff008d2015a2c6484.tar.bz2 newspipe-50ce677513a06e98a48e236ff008d2015a2c6484.zip |
Email notification.
Diffstat (limited to 'pyaggr3g470r/__init__.py')
-rw-r--r-- | pyaggr3g470r/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pyaggr3g470r/__init__.py b/pyaggr3g470r/__init__.py index b24f3c7d..16bdc57f 100644 --- a/pyaggr3g470r/__init__.py +++ b/pyaggr3g470r/__init__.py @@ -19,15 +19,16 @@ app.config['SECRET_KEY'] = os.urandom(12) app.config['MONGODB_SETTINGS'] = {'DB': conf.DATABASE_NAME} app.config["MAIL_SERVER"] = conf.MAIL_HOST app.config["MAIL_PORT"] = conf.MAIL_PORT +app.config["MAIL_USE_TLS"] = conf.MAIL_TLS app.config["MAIL_USE_SSL"] = conf.MAIL_SSL app.config["MAIL_USERNAME"] = conf.MAIL_USERNAME -#app.config["MAIL_PASSWORD"] = 'your-password' +app.config["MAIL_PASSWORD"] = conf.MAIL_PASSWORD # Initializes the database db = MongoEngine(app) db.init_app(app) -from views import mail -mail.init_app(app) +from flask.ext.mail import Message, Mail +mail = Mail(app) from pyaggr3g470r import views
\ No newline at end of file |