Register mail as extension, for now

This commit is contained in:
Matt Wright
2012-08-21 11:38:24 -04:00
parent 24f02a76f5
commit 66c565a72f
2 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -81,7 +81,8 @@ def create_app(auth_config):
app.debug = True
app.config['SECRET_KEY'] = 'secret'
app.mail = Mail(app)
mail = Mail(app)
app.extensions['mail'] = mail
if auth_config:
for key, value in auth_config.items():