configuration_example.py has inaccurate STORAGE_BACKEND examples #11242

Closed
opened 2025-12-29 21:42:23 +01:00 by adam · 2 comments
Owner

Originally created by @gizmonicus on GitHub (May 30, 2025).

Originally assigned to: @gizmonicus on GitHub.

Change Type

Correction

Area

Configuration

Proposed Changes

Now that STORAGES is the preferred configuration directive, the example configuration file (configuration_example.py) should be updated to reflect the change.

Something like this maybe?

# 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",
#     },
# }
Originally created by @gizmonicus on GitHub (May 30, 2025). Originally assigned to: @gizmonicus on GitHub. ### Change Type Correction ### Area Configuration ### Proposed Changes Now that STORAGES is the preferred configuration directive, the example configuration file (configuration_example.py) should be updated to reflect the change. Something like this maybe? ``` # 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", # }, # } ```
adam added the status: acceptedtype: documentation labels 2025-12-29 21:42:23 +01:00
adam closed this issue 2025-12-29 21:42:23 +01:00
Author
Owner

@jnovinger commented on GitHub (Jun 4, 2025):

Is this something you'd like to contribute, @gizmonicus ?

@jnovinger commented on GitHub (Jun 4, 2025): Is this something you'd like to contribute, @gizmonicus ?
Author
Owner

@gizmonicus commented on GitHub (Jun 4, 2025):

Is this something you'd like to contribute, @gizmonicus

Sure. I'll have to figure out how to do a pull request but I'm happy to do that. I'll read the contributing guide and give it a go.

@gizmonicus commented on GitHub (Jun 4, 2025): > Is this something you'd like to contribute, [@gizmonicus](https://github.com/gizmonicus) Sure. I'll have to figure out how to do a pull request but I'm happy to do that. I'll read the contributing guide and give it a go.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11242