Commit 792e347a authored by Patrick van der Leer's avatar Patrick van der Leer
Browse files

config cleanup

parent 5ccfc2ea
......@@ -56,29 +56,7 @@ class Config(metaclass=MetaFlaskEnv):
# Debug ToolBar
DEBUG_TB_ENABLED = False # Disable Debug toolbar
DEBUG_TB_INTERCEPT_REDIRECTS = False
# Babel i18n
BABEL_DEFAULT_LOCALE = 'en'
BABEL_DEFAULT_TIMEZONE = 'Europe/Amsterdam'
LANGUAGES = {
'en': 'English',
'de': 'Deutsch',
'nl': 'Nederlands',
'fr': 'Français',
}
THREADED = True
UPLOADS_DEFAULT_DEST = os.path.abspath("uploads")
# Raven Sentry
SENTRY = False
SENTRY_CONFIG = {
'dsn': "",
'release': __version__,
"environment": "STAGE",
"tags": {
},
}
SENTRY_USER_ATTRS = ['first_name', 'last_name', 'email']
class ProdConfig(Config):
......@@ -115,7 +93,6 @@ class DevConfig(Config):
DEBUG_TB_ENABLED = True
CACHE_TYPE = 'simple' # Can be "memcached", "redis", etc.
BCRYPT_LOG_ROUNDS = 4 # For faster tests; needs at least 4 to avoid "ValueError: Invalid rounds"
SENTRY = False
class TestConfig(Config):
......@@ -127,6 +104,3 @@ class TestConfig(Config):
LIVESERVER_PORT = 0
SQLALCHEMY_DATABASE_URI = 'sqlite://'
BCRYPT_LOG_ROUNDS = 4 # For faster tests; needs at least 4 to avoid "ValueError: Invalid rounds"
CELERY_RESULT_BACKEND = "rpc"
CELERY_BROKER_URL = "rpc"
CELERY_ALWAYS_EAGER = True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment