#35397: override_settings for STORAGES loses OPTIONS
-------------------------------------+-------------------------------------
               Reporter:  Will       |          Owner:  nobody
  Giddens                            |
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:  File       |        Version:  4.2
  uploads/storage                    |       Keywords:  override_settings,
               Severity:  Normal     |  storages
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 If you use override_settings to change STORAGES, any OPTIONS set on the
 default storage are ignored.

 The `Settings.__init__()` checks if STORAGES is overwritten and sets the
 DEFAULT_FILE_STORAGE to the new value.  `StorageHandler.backends` checks
 to see if DEFAULT_FILE_STORAGE is overridden. It proceeds to overwrite the
 `STORAGES["default"]` based on the DEFAULT_FILE_STORAGE setting and
 overrides the explicitly set OPTIONS.

 It looks like `STATICFILES_STORAGE` is handled the same way.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35397>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018f079f0e84-5ad6d4c3-3a82-43fb-b2f6-36b842b4f5e8-000000%40eu-central-1.amazonses.com.

Reply via email to