Skip to content

Commit d24afee

Browse files
authored
Merge pull request #1576 from matandomuertos/fix-storages-example
Update STORAGES example in extra.py
2 parents 95c201f + ac41931 commit d24afee

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

configuration/extra.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,20 @@
3333

3434

3535
## By default uploaded media is stored on the local filesystem. Using Django-storages is also supported. Provide the
36-
## class path of the storage driver in STORAGE_BACKEND and any configuration options in STORAGE_CONFIG. For example:
37-
# STORAGE_BACKEND = 'storages.backends.s3boto3.S3Boto3Storage'
38-
# STORAGE_CONFIG = {
39-
# 'AWS_ACCESS_KEY_ID': 'Key ID',
40-
# 'AWS_SECRET_ACCESS_KEY': 'Secret',
41-
# 'AWS_STORAGE_BUCKET_NAME': 'netbox',
42-
# 'AWS_S3_REGION_NAME': 'eu-west-1',
36+
## class path of the storage driver and any configuration options in STORAGES. For example:
37+
# STORAGES = {
38+
# 'default': {
39+
# 'BACKEND': 'storages.backends.s3boto3.S3Boto3Storage',
40+
# 'OPTIONS': {
41+
# 'access_key': 'Key ID',
42+
# 'secret_key': 'Secret',
43+
# 'bucket_name': 'netbox',
44+
# 'region_name': 'us-west-1',
45+
# }
46+
# },
47+
# 'staticfiles': {
48+
# 'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage',
49+
# }
4350
# }
4451

4552

0 commit comments

Comments
 (0)