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-10-15 19:32:59 +0200
commit79fdfeb620c9b95ad44c34a22d5d661baa55bc92 (patch)
tree5ff848a9ff7ac9a89794a153a5b249d7aecdb678 /example_project/settings.py
parentb596f92c7f96a3ee4cdcfd00b4f4ddb11d4e4711 (diff)
downloadIshtar-79fdfeb620c9b95ad44c34a22d5d661baa55bc92.tar.bz2
Ishtar-79fdfeb620c9b95ad44c34a22d5d661baa55bc92.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 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/"