From 1bdf62062fbbb4f2902346a4a597b470547db5a3 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 15 Feb 2021 10:38:18 +0000 Subject: [PATCH] . --- rad/settings.py | 3 +++ requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/rad/settings.py b/rad/settings.py index ae04f786..71979881 100644 --- a/rad/settings.py +++ b/rad/settings.py @@ -39,6 +39,7 @@ INSTALLED_APPS = [ "django_tables2", "django_filters", "easy_thumbnails", + "easy_thumbnails", "filer", "mptt", "sortedm2m", @@ -203,6 +204,8 @@ THUMBNAIL_SOURCE_GENERATORS = ('easy_thumbnails.source_generators.pil_image', 'h DBBACKUP_STORAGE = 'django.core.files.storage.FileSystemStorage' DBBACKUP_STORAGE_OPTIONS = {'location': os.path.join(BASE_DIR, '../backups')} +DEFAULT_FILE_STORAGE = 'django_hashedfilenamestorage.storage.HashedFilenameFileSystemStorage' + try: from .settings_local import * except ImportError: diff --git a/requirements.txt b/requirements.txt index 7ecc51d5..3dc2e6a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,3 +16,4 @@ pytesseract opencv-python pydicom django-dbbackup +django-hashedfilenamestorage \ No newline at end of file