From c872cce59ffaf01cfb73bf4b2a95139ecddf6d6a Mon Sep 17 00:00:00 2001 From: gizmonicus Date: Mon, 9 Jun 2025 14:14:52 -0400 Subject: [PATCH] Fixes: #19616: configuration_example.py has inaccurate STORAGE_BACKEND examples (#19657) --- netbox/netbox/configuration_example.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/netbox/netbox/configuration_example.py b/netbox/netbox/configuration_example.py index ada6b1293..612f75a40 100644 --- a/netbox/netbox/configuration_example.py +++ b/netbox/netbox/configuration_example.py @@ -231,14 +231,19 @@ SESSION_FILE_PATH = None # DISK_BASE_UNIT = 1024 # RAM_BASE_UNIT = 1024 -# By default, uploaded media is stored on the local filesystem. Using Django-storages is also supported. Provide the -# class path of the storage driver in STORAGE_BACKEND and any configuration options in STORAGE_CONFIG. For example: -# STORAGE_BACKEND = 'storages.backends.s3boto3.S3Boto3Storage' -# STORAGE_CONFIG = { -# 'AWS_ACCESS_KEY_ID': 'Key ID', -# 'AWS_SECRET_ACCESS_KEY': 'Secret', -# 'AWS_STORAGE_BUCKET_NAME': 'netbox', -# 'AWS_S3_REGION_NAME': 'eu-west-1', +# Within the STORAGES dictionary, "default" is used for image uploads, "staticfiles" is for static files and "scripts" +# is used for custom scripts. See django-storages and django-storage-swift libraries for more details. By default the +# following configuration is used: +# STORAGES = { +# "default": { +# "BACKEND": "django.core.files.storage.FileSystemStorage", +# }, +# "staticfiles": { +# "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", +# }, +# "scripts": { +# "BACKEND": "extras.storage.ScriptFileSystemStorage", +# }, # } # Time zone (default: UTC)