Skip to content

Commit

Permalink
[docs/s3] fix overriding the default Storage class example (#1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
HansBambel committed Aug 2, 2023
1 parent a87dea6 commit d547bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/backends/amazon-S3.rst
Expand Up @@ -284,7 +284,7 @@ You can now use your custom storage class for default file storage in Django set
DEFAULT_FILE_STORAGE = 'my_django_app.custom_storage.MediaStorage'

# django >= 4.2
STORAGES = {"default": "my_django_app.custom_storage.MediaStorage"}
STORAGES = {"default": {"BACKEND": "my_django_app.custom_storage.MediaStorage"}}

Or you may want to upload files to the bucket in some view that accepts file upload request::

Expand Down

0 comments on commit d547bb6

Please sign in to comment.