add parsing of dict-string
STORAGE_CONFIG must be converted from string to a Dictionary, only if STORAGE_BACKEND is defined.
This commit is contained in:
parent
c75311c469
commit
3bbb65b2d7
1 changed files with 3 additions and 1 deletions
|
@ -208,7 +208,9 @@ STORAGE_BACKEND = os.environ.get('STORAGE_BACKEND', None)
|
|||
# A dictionary of configuration parameters for the storage backend configured as STORAGE_BACKEND. The specific
|
||||
# parameters to be used here are specific to each backend; see the django-storages documentation for more detail.
|
||||
# If STORAGE_BACKEND is not defined, this setting will be ignored.
|
||||
STORAGE_CONFIG = os.environ.get('STORAGE_CONFIG', None)
|
||||
if STORAGE_BACKEND:
|
||||
import ast
|
||||
STORAGE_CONFIG = ast.literal_eval(os.environ.get('STORAGE_CONFIG', "{}"))
|
||||
|
||||
# Time zone (default: UTC)
|
||||
TIME_ZONE = os.environ.get('TIME_ZONE', 'UTC')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue