File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed
Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 4343EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
4444EMAIL_FILE_PATH = "/tmp/credentials-emails"
4545
46- defaultfile_storage = os .environ .get ("DEFAULT_FILE_STORAGE" )
47-
48- if defaultfile_storage :
49- STORAGES ["default" ]["BACKEND" ] = defaultfile_storage
50-
51- staticfiles_storage = os .environ .get ("STATICFILES_STORAGE" )
52-
53- if staticfiles_storage :
54- STORAGES ["staticfiles" ]["BACKEND" ] = staticfiles_storage
55-
5646MEDIA_URL = os .environ .get ("MEDIA_URL" , "/media/" )
5747STATIC_URL = os .environ .get ("STATIC_URL" , "/static/" )
5848
Original file line number Diff line number Diff line change 4545 vars ().update (config_from_yaml )
4646
4747 FILE_STORAGE_BACKEND = config_from_yaml .get ("FILE_STORAGE_BACKEND" , {})
48- default_backend = FILE_STORAGE_BACKEND .pop ("DEFAULT_FILE_STORAGE" , None )
49- static_backend = FILE_STORAGE_BACKEND .pop ("STATICFILES_STORAGE" , None )
5048
5149 # Load the files storage backend settings for django storages
52- # In django==4.2.24 following line sets the DEFAULT_FILE_STORAGE and other AWS variables as per YAML.
50+ # In django==4.2.24 following line sets AWS variables as per YAML.
5351 vars ().update (FILE_STORAGE_BACKEND )
5452
55- if default_backend :
56- STORAGES ["default" ]["BACKEND" ] = default_backend
57-
58- if static_backend :
59- STORAGES ["staticfiles" ]["BACKEND" ] = static_backend
60-
6153# make sure this happens after the configuration file overrides so format string can be overridden
6254LOGGING = get_logger_config (format_string = LOGGING_FORMAT_STRING )
6355
You can’t perform that action at this time.
0 commit comments