Skip to content

Commit

Permalink
Setup storages the new way and update to Django 5.1 again
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg committed Aug 28, 2024
1 parent a90a3f1 commit 52e7d53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
botocore==1.35.5
Django==5.0.8
Django==5.1
django-admin-rangefilter==0.13.2
django-filter==24.3
django-import-export==4.1.1
Expand Down
3 changes: 1 addition & 2 deletions shadowmere/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@
STATIC_ROOT = "./static_files/"

if not DEBUG:
DEFAULT_FILE_STORAGE = "minio_storage.storage.MinioMediaStorage"
STATICFILES_STORAGE = "minio_storage.storage.MinioStaticStorage"
STORAGES = {"staticfiles": {"BACKEND": "minio_storage.storage.MinioStaticStorage"}}
MINIO_STORAGE_ENDPOINT = os.getenv("MINIO_ENDPOINT")
MINIO_STORAGE_ACCESS_KEY = os.getenv("MINIO_ACCESS_KEY")
MINIO_STORAGE_SECRET_KEY = os.getenv("MINIO_SECRET_KEY")
Expand Down

0 comments on commit 52e7d53

Please sign in to comment.