|
@@ -16,9 +16,6 @@ class TestingConfig(DefaultConfig):
|
|
|
DEBUG = False
|
|
|
TESTING = True
|
|
|
|
|
|
- # SQLAlchemy connection options
|
|
|
- # This will create in the applications folder (where manage.py is)
|
|
|
- # a database named flaskbb.sqlite.
|
|
|
SQLALCHEMY_DATABASE_URI = (
|
|
|
'sqlite://'
|
|
|
)
|
|
@@ -28,11 +25,6 @@ class TestingConfig(DefaultConfig):
|
|
|
# This will print all SQL statements
|
|
|
SQLALCHEMY_ECHO = False
|
|
|
|
|
|
- # Security
|
|
|
- SECRET_KEY = "SecretKeyForSessionSigning"
|
|
|
- WTF_CSRF_ENABLED = True
|
|
|
- WTF_CSRF_SECRET_KEY = "reallyhardtoguess"
|
|
|
-
|
|
|
# Recaptcha
|
|
|
# To get recaptcha, visit the link below:
|
|
|
# https://www.google.com/recaptcha/admin/create
|
|
@@ -43,27 +35,9 @@ class TestingConfig(DefaultConfig):
|
|
|
RECAPTCHA_PRIVATE_KEY = "6LcZB-0SAAAAAPuPHhazscMJYa2mBe7MJSoWXrUu"
|
|
|
RECAPTCHA_OPTIONS = {"theme": "white"}
|
|
|
|
|
|
- # Mail
|
|
|
- # Local SMTP Server
|
|
|
- #MAIL_SERVER = "localhost"
|
|
|
- #MAIL_PORT = 25
|
|
|
- #MAIL_USE_SSL = False
|
|
|
- #MAIL_USERNAME = ""
|
|
|
- #MAIL_PASSWORD = ""
|
|
|
- #MAIL_DEFAULT_SENDER = "noreply@example.org"
|
|
|
-
|
|
|
- # Google Mail Example
|
|
|
- MAIL_SERVER = "smtp.gmail.com"
|
|
|
- MAIL_PORT = 465
|
|
|
- MAIL_USE_SSL = True
|
|
|
- MAIL_USERNAME = "your_username@gmail.com"
|
|
|
- MAIL_PASSWORD = "your_password"
|
|
|
- MAIL_DEFAULT_SENDER = ("Your Name", "your_username@gmail.com")
|
|
|
+ WHOOSHEE_MEMORY_STORAGE = True
|
|
|
|
|
|
CELERY_ALWAYS_EAGER = True
|
|
|
CELERY_RESULT_BACKEND = "cache"
|
|
|
CELERY_CACHE_BACKEND = "memory"
|
|
|
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
|
|
|
-
|
|
|
- # The user who should recieve the error logs
|
|
|
- ADMINS = ["your_admin_user@gmail.com"]
|