From 4f448b6473f843b5480921903afa342ab7f19345 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 27 Mar 2025 14:47:12 +0100 Subject: ♻️ django: fix warnings for v5 - migrate to timezone aware dates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example_project/settings.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'example_project/settings.py') diff --git a/example_project/settings.py b/example_project/settings.py index e8539e71f..ba88e842a 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -104,6 +104,8 @@ SHORT_DATE_FORMAT = "%d/%m/%Y" SITE_ID = 1 +USE_TZ = True + # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True @@ -117,7 +119,12 @@ LANGUAGES = ( ("en", "English"), ) DEFAULT_LANGUAGE = 1 -DEFAULT_FILE_STORAGE = "ishtar_common.utils.IshtarFileSystemStorage" +STORAGES = { + "default": {"BACKEND": "ishtar_common.utils.IshtarFileSystemStorage"}, + "staticfiles": { + "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage", + }, +} # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -- cgit v1.2.3