|
|
|
@ -3,10 +3,11 @@ import os |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Config(object): |
|
|
|
|
SECRET_KEY = 'shhhh' |
|
|
|
|
SECRET_KEY = 'shhhh' # TODO: Change me |
|
|
|
|
APP_DIR = os.path.abspath(os.path.dirname(__file__)) # This directory |
|
|
|
|
PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir)) |
|
|
|
|
BCRYPT_LOG_ROUNDS = 13 |
|
|
|
|
ASSETS_DEBUG = False |
|
|
|
|
DEBUG_TB_ENABLED = False # Disable Debug toolbar |
|
|
|
|
DEBUG_TB_INTERCEPT_REDIRECTS = False |
|
|
|
|
CACHE_TYPE = 'simple' # Can be "memcached", "redis", etc. |
|
|
|
@ -16,7 +17,7 @@ class ProdConfig(Config): |
|
|
|
|
"""Production configuration.""" |
|
|
|
|
ENV = 'prod' |
|
|
|
|
DEBUG = False |
|
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/example' |
|
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/example' # TODO: Change me |
|
|
|
|
DEBUG_TB_ENABLED = False # Disable Debug toolbar |
|
|
|
|
|
|
|
|
|
|
|
|
|
|