From 535a3a7cfdc8f619910b24a954a93ec226835f1b Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:40:33 -0500 Subject: [PATCH] feat: Set DELETE_FILES_AFTER_DAYS, closes #89 --- cove_project/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cove_project/settings.py b/cove_project/settings.py index 286e0a5..e270d7e 100644 --- a/cove_project/settings.py +++ b/cove_project/settings.py @@ -36,6 +36,7 @@ } VALIDATION_ERROR_LOCATIONS_LENGTH = settings.VALIDATION_ERROR_LOCATIONS_LENGTH VALIDATION_ERROR_LOCATIONS_SAMPLE = settings.VALIDATION_ERROR_LOCATIONS_SAMPLE +DELETE_FILES_AFTER_DAYS = int(os.getenv("DELETE_FILES_AFTER_DAYS", 90)) # We can't take MEDIA_ROOT and MEDIA_URL from cove settings, # ... otherwise the files appear under the BASE_DIR that is the Cove library install.