Skip to content

Commit 0b64724

Browse files
committed
fix default custom.py config
1 parent 41205b0 commit 0b64724

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

install/conf/custom.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# uncomment and set settings here to use S3 for media and static files
22
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#authentication-settings
33
#
4-
from storages.backends.s3 import S3Storage
4+
# from storages.backends.s3 import S3Storage
55

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+
# }

0 commit comments

Comments
 (0)