Просмотр исходного кода

Inconsistent config and added some notes what the "ADMIN" does. Fixes #12

sh4nks 11 лет назад
Родитель
Сommit
90ec4c10b5

+ 1 - 1
flaskbb/app.py

@@ -223,7 +223,7 @@ def configure_logging(app):
     if app.config["SEND_LOGS"]:
         mail_handler = \
             SMTPHandler(app.config['MAIL_SERVER'],
-                        app.config['DEFAULT_MAIL_SENDER'],
+                        app.config['MAIL_DEFAULT_SENDER'],
                         app.config['ADMINS'],
                         'application error, no admins specified',
                         (

+ 1 - 0
flaskbb/configs/default.py

@@ -72,6 +72,7 @@ class DefaultConfig(object):
     MAIL_USERNAME = "noreply@example.org"
     MAIL_PASSWORD = ""
     MAIL_DEFAULT_SENDER = ("Default Sender", "noreply@example.org")
+    # Where to logger should send the emails to
     ADMINS = ["admin@example.org"]
 
     ## App specific configs

+ 1 - 0
flaskbb/configs/development.py.example

@@ -47,4 +47,5 @@ class DevelopmentConfig(DefaultConfig):
     MAIL_USERNAME = "flaskbb@gmail.com"
     MAIL_PASSWORD = "your_password"
     MAIL_DEFAULT_SENDER = "flaskbb@gmail.com"
+    # Where to logger should send the emails to
     ADMINS = ["flaskbb@gmail.com"]

+ 1 - 0
flaskbb/configs/production.py.example

@@ -56,6 +56,7 @@ class ProductionConfig(DefaultConfig):
     MAIL_USERNAME = "your_username@gmail.com"
     MAIL_PASSWORD = "your_password"
     MAIL_DEFAULT_SENDER = ("Your Name", "your_username@gmail.com")
+    # Where to logger should send the emails to
     ADMINS = ["your_admin_user@gmail.com"]