From c3728750f7db6cfe06d1e581b01867d2b9cccd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 14 Nov 2022 22:07:29 +0100 Subject: [PATCH] Fix: #910 --- mamweb/settings_common.py | 3 +++ requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/mamweb/settings_common.py b/mamweb/settings_common.py index baebe3b4..5a610795 100644 --- a/mamweb/settings_common.py +++ b/mamweb/settings_common.py @@ -160,6 +160,9 @@ INSTALLED_APPS = ( # 'admin_tools.menu', # 'admin_tools.dashboard', 'django.contrib.admin', + + # Nechat na konci (INSTALLED_APPS je uspořádané): + 'django_cleanup.apps.CleanupConfig', # Uklízí media/ ) DEBUG_TOOLBAR_CONFIG = { diff --git a/requirements.txt b/requirements.txt index 9ad24a7f..39eabfb3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,6 +21,7 @@ django-sekizai django-countries django-solo django-ckeditor +django-cleanup # Uklízí media/ od smazaných „databázových“ souborů django-flat-theme django-taggit django-autocomplete-light>=3.9.0rc1