Skip to content

Conversation

@SchrodingersGat
Copy link
Member

@SchrodingersGat SchrodingersGat commented Oct 29, 2025

Follow-up to #10140

Without this change, get this error on invoke update

Waiting for database connection...
Python version 3.11.11 - /home/inventree/dev/venv/bin/python3
Traceback (most recent call last):
  File "/home/inventree/src/backend/InvenTree/manage.py", line 24, in <module>
    main()
  File "/home/inventree/src/backend/InvenTree/manage.py", line 20, in main
    execute_from_command_line(sys.argv)
  File "/home/inventree/dev/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/home/inventree/dev/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 382, in execute
    settings.INSTALLED_APPS
  File "/home/inventree/dev/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 102, in __getattr__
    self._setup(name)
  File "/home/inventree/dev/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 89, in _setup
    self._wrapped = Settings(settings_module)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/inventree/dev/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 217, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/inventree/src/backend/InvenTree/InvenTree/settings.py", line 1569, in <module>
    STORAGE_TARGET, STORAGES, _media = storages.init_storages()
                                       ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/inventree/src/backend/InvenTree/InvenTree/setting/storages.py", line 35, in init_storages
    raise ValueError(f"Invalid storage target: '{target}'")
ValueError: Invalid storage target: 'StorageBackends.LOCAL'

@netlify
Copy link

netlify bot commented Oct 29, 2025

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 55c9d3e
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6902d47f2b31c4000870399d

@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.80%. Comparing base (edd920e) to head (55c9d3e).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10718   +/-   ##
=======================================
  Coverage   87.80%   87.80%           
=======================================
  Files        1277     1277           
  Lines       57503    57503           
  Branches     2023     2023           
=======================================
+ Hits        50489    50492    +3     
+ Misses       6514     6511    -3     
  Partials      500      500           
Flag Coverage Δ
backend 89.55% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 91.88% <ø> (ø)
Backend General 93.66% <ø> (ø)
Frontend 70.09% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat SchrodingersGat merged commit ec9b6e7 into inventree:master Oct 30, 2025
35 checks passed
@SchrodingersGat SchrodingersGat deleted the storage-target-default branch October 30, 2025 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant