Skip to content

Commit

Permalink
⬆️(media) upgrade django-storages to v1.9.1
Browse files Browse the repository at this point in the history
We want to run the latest version of django-storages.
  • Loading branch information
sampaccoud committed May 7, 2020
1 parent 66aa2aa commit 30d7dfc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Upgrade to django-storages 1.9.1

### Fixed

- With the django storages S3 backend, `MEDIA_URL` should not start with a "/"
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Django<3
django-configurations==2.2
# Superior versions of django-storages are not compatible with
# ManifestStaticFilesStorage
django-storages==1.8
django-storages==1.9.1
dockerflow==2019.10.0
gunicorn==20.0.4
psycopg2-binary==2.8.5
Expand Down
1 change: 1 addition & 0 deletions src/backend/funmooc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ class Production(Base):
X_FRAME_OPTIONS = "SAMEORIGIN"

DEFAULT_FILE_STORAGE = "funmooc.storage.MediaStorage"
AWS_DEFAULT_ACL = None
MEDIA_URL = "media/"

# For static files in production, we want to use a backend that includes a hash in
Expand Down

0 comments on commit 30d7dfc

Please sign in to comment.