Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace STORAGE_BACKEND and STORAGE_CONFIG configuration parameters with Django's STORAGES #18423

Open
jeremystretch opened this issue Jan 17, 2025 · 0 comments
Labels
needs milestone Awaiting prioritization for inclusion with a future NetBox release status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application

Comments

@jeremystretch
Copy link
Member

NetBox version

v4.2.1

Feature type

Change to existing functionality

Triage priority

N/A

Proposed functionality

NetBox currently exposes two configuration parameters for configuring file storage:

  • STORAGE_BACKEND - Sets the storage backend (e.g. django-storages)
  • STORAGE_CONFIG - A dictionary of backend-specific configuration parameters

We can replace these by instead exposing Django's STORAGES setting directly.

Use case

Django's native STORAGE_BACKEND setting was removed in v5.1 and superseded by STORAGES. There is no longer a need to handle the backend selection and configuration via separate configuration parameters.

Database changes

N/A

External dependencies

N/A

@jeremystretch jeremystretch added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application status: under review Further discussion is needed to determine this issue's scope and/or implementation needs milestone Awaiting prioritization for inclusion with a future NetBox release and removed status: needs triage This issue is awaiting triage by a maintainer labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs milestone Awaiting prioritization for inclusion with a future NetBox release status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

1 participant