Commit 6adf476 1 parent 5e0a30d commit 6adf476 Copy full SHA for 6adf476
File tree 2 files changed +12
-11
lines changed
museum_of_dreams_project/settings
2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
from .base import *
2
- from storages .backends .s3boto3 import S3Boto3Storage
3
2
4
3
5
4
SECRET_KEY = os .environ .get ("SECRET_KEY" )
30
29
AWS_QUERYSTRING_AUTH = False # needed by grappelli to work with s3
31
30
32
31
33
- class StaticStorage (S3Boto3Storage ):
34
- location = STATIC_ROOT
35
-
36
-
37
- class MediaStorage (S3Boto3Storage ):
38
- location = MEDIA_ROOT
39
-
40
-
41
- DEFAULT_FILE_STORAGE = "MediaStorage"
42
- STATICFILES_STORAGE = "StaticStorage"
32
+ DEFAULT_FILE_STORAGE = "static.MediaStorage"
33
+ STATICFILES_STORAGE = "static.StaticStorage"
43
34
44
35
AWS_ACCESS_KEY_ID = os .environ ["AWS_ACCESS_KEY_ID" ]
45
36
AWS_SECRET_ACCESS_KEY = os .environ ["AWS_SECRET_ACCESS_KEY" ]
Original file line number Diff line number Diff line change
1
+ from storages .backends .s3boto3 import S3Boto3Storage
2
+ import aws
3
+
4
+
5
+ class StaticStorage (S3Boto3Storage ):
6
+ location = aws .STATIC_ROOT
7
+
8
+
9
+ class MediaStorage (S3Boto3Storage ):
10
+ location = aws .MEDIA_ROOT
You can’t perform that action at this time.
0 commit comments