diff options
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 |