Update the way settings are loaded. Instead of loading the entire config file now settings are loaded from the config file on demand when the cache misses. Improve the smart settings classes tests and add another test for the config file loading. Add support for variable config file path. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
9 lines
235 B
Python
9 lines
235 B
Python
from __future__ import unicode_literals
|
|
|
|
DEFAULT_SECRET_KEY = 'secret-key-missing!'
|
|
SECRET_KEY_FILENAME = 'SECRET_KEY'
|
|
SYSTEM_DIR = 'system'
|
|
|
|
CONFIGURATION_FILENAME = 'config.yml'
|
|
CONFIGURATION_LAST_GOOD_FILENAME = 'config_backup.yml'
|