Coverage for extras/storage.py: 86%
7 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
1from django.conf import settings
2from django.core.files.storage import FileSystemStorage
3from django.utils.functional import cached_property
6class ScriptFileSystemStorage(FileSystemStorage):
7 """
8 Custom storage for scripts - for django-storages as the default one will
9 go off media-root and raise security errors as the scripts can be outside
10 the media-root directory.
11 """
12 @cached_property
13 def base_location(self):
14 return settings.SCRIPTS_ROOT