From ccd0fc2c429da64e9a1593e952f78eb5c21047da Mon Sep 17 00:00:00 2001 From: Alberto Moreta Date: Tue, 19 Mar 2024 14:12:38 +0100 Subject: [PATCH] Add django-cleanup to replace or remove unused media --- appmes/settings.py | 2 ++ requirements.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/appmes/settings.py b/appmes/settings.py index 25c98b3..3968066 100644 --- a/appmes/settings.py +++ b/appmes/settings.py @@ -76,6 +76,8 @@ 'django.contrib.messages', 'django.contrib.staticfiles', 'django_filters', + + 'django_cleanup.apps.CleanupConfig', # Needs to be at the end ] MIDDLEWARE = [ diff --git a/requirements.txt b/requirements.txt index 67d0cbc..9fe7504 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ django==5.0.0 django-admin-interface==0.24.2 django-ckeditor==6.7.0 +django-cleanup==8.1.0 django-csp==3.7 django-environ==0.11.2 django-filter==23.5