Changed default storage path setting
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jordi Loyzaga 2024-09-19 04:01:57 -06:00
parent 3279d6c5dc
commit a8fade699c
2 changed files with 9 additions and 2 deletions

View File

@ -53,7 +53,7 @@ CONFIG_KEYS = {
"verbose_name": "File integrity verification", "verbose_name": "File integrity verification",
"native_type": bool, "native_type": bool,
"sensitive": False, "sensitive": False,
"default": True "default": True,
}, },
"ENABLE_BROWSABLE_API": { "ENABLE_BROWSABLE_API": {
"description": "REST Framework browsable API is enabled (Always enabled if DEBUG is true)", "description": "REST Framework browsable API is enabled (Always enabled if DEBUG is true)",
@ -90,4 +90,11 @@ CONFIG_KEYS = {
"sensitive": False, "sensitive": False,
"default": ".", "default": ".",
}, },
"STORAGE_ABSOLUTE_PATH": {
"description": "Path where files are stored",
"verbose_name": "Storage path",
"native_type": str,
"sensitive": False,
"default": ".",
},
} }

View File

@ -115,7 +115,7 @@ STORAGES = {
} }
# Storage # Storage
MEDIA_ROOT = Path("/home/kitty/src/lockbox/FILES") MEDIA_ROOT = Path(get_config("STORAGE_ABSOLUTE_PATH"))
MEDIA_URL = "files/" MEDIA_URL = "files/"
INCOMPLETE_EXT = ".incomplete" INCOMPLETE_EXT = ".incomplete"
DEFAULT_FILE_HEADER_BYTES = 2048 DEFAULT_FILE_HEADER_BYTES = 2048