summaryrefslogtreecommitdiff
path: root/example_project/settings.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-27 14:47:12 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-13 18:08:06 +0200
commit84ed3cfb40a64e64ddc32cc0df943cb12e198717 (patch)
treed4220a3a19ee6ae31fbf281d7e0d35fb5b452cd1 /example_project/settings.py
parentdb174e7f376a3687cb6cd84339592231ceae0ee0 (diff)
downloadIshtar-84ed3cfb40a64e64ddc32cc0df943cb12e198717.tar.bz2
Ishtar-84ed3cfb40a64e64ddc32cc0df943cb12e198717.zip
♻️ django: fix warnings for v5 - migrate to timezone aware dates
Diffstat (limited to 'example_project/settings.py')
-rw-r--r--example_project/settings.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index 1667f1942..5c1a039d3 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -105,6 +105,8 @@ DATE_FORMAT = "%-d %B %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
@@ -118,7 +120,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/"