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