-
Notifications
You must be signed in to change notification settings - Fork 81
fix: Removed DEFAULT_FILE_STORAGE and STATICFILES_STORAGES #2917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -45,19 +45,11 @@ | |||||
| vars().update(config_from_yaml) | ||||||
|
|
||||||
| FILE_STORAGE_BACKEND = config_from_yaml.get("FILE_STORAGE_BACKEND", {}) | ||||||
| default_backend = FILE_STORAGE_BACKEND.pop("DEFAULT_FILE_STORAGE", None) | ||||||
| static_backend = FILE_STORAGE_BACKEND.pop("STATICFILES_STORAGE", None) | ||||||
|
|
||||||
| # Load the files storage backend settings for django storages | ||||||
| # In django==4.2.24 following line sets the DEFAULT_FILE_STORAGE and other AWS variables as per YAML. | ||||||
| # In django==4.2.24 following line sets AWS variables as per YAML. | ||||||
|
||||||
| # In django==4.2.24 following line sets AWS variables as per YAML. | |
| # In django==5.2.7 the following line sets AWS variables as per YAML. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the inline comment.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without
STORAGESdict inside prod yaml we cant make these changes. It will break production