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