File tree Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
1
# uncomment and set settings here to use S3 for media and static files
2
2
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#authentication-settings
3
3
#
4
- from storages .backends .s3 import S3Storage
4
+ # from storages.backends.s3 import S3Storage
5
5
6
-
7
- class StaticStorage (S3Storage ):
8
- location = "static"
9
- default_acl = "public-read"
10
-
11
-
12
- class MediaStorage (S3Storage ):
13
- default_acl = "public-read"
14
-
15
-
16
- STORAGES = {
17
- "default" : {
18
- "BACKEND" : "project.settings.MediaStorage" ,
19
- "OPTIONS" : {},
20
- },
21
- "staticfiles" : {
22
- "BACKEND" : "project.settings.StaticStorage" ,
23
- "OPTIONS" : {},
24
- },
25
- }
6
+ #
7
+ # class StaticStorage(S3Storage):
8
+ # location = "static"
9
+ # default_acl = "public-read"
10
+ #
11
+ #
12
+ # class MediaStorage(S3Storage):
13
+ # default_acl = "public-read"
14
+ #
15
+ #
16
+ # STORAGES = {
17
+ # "default": {
18
+ # "BACKEND": "project.settings.MediaStorage",
19
+ # "OPTIONS": {},
20
+ # },
21
+ # "staticfiles": {
22
+ # "BACKEND": "project.settings.StaticStorage",
23
+ # "OPTIONS": {},
24
+ # },
25
+ # }
You can’t perform that action at this time.
0 commit comments