Skip to content

Commit 9b62a13

Browse files
committed
update: custom storage
1 parent 7c347be commit 9b62a13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: pyconkr/settings-prod.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222

2323
# django-storages: S3
2424
del MEDIA_ROOT
25-
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
26-
STATICFILES_STORAGE = "storages.backends.s3boto3.S3StaticStorage"
25+
26+
DEFAULT_FILE_STORAGE = "pyconkr.storage.MediaStorage"
27+
STATICFILES_STORAGE = "pyconkr.storage.StaticStorage"
28+
2729
AWS_S3_ACCESS_KEY_ID = os.getenv("AWS_S3_ACCESS_KEY_ID")
2830
AWS_S3_SECRET_ACCESS_KEY = os.getenv("AWS_S3_SECRET_ACCESS_KEY")
2931
AWS_DEFAULT_REGION = "ap-northeast-2"

0 commit comments

Comments
 (0)