We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9fcb4a commit 2f7b16eCopy full SHA for 2f7b16e
4 files changed
pgweb/settings.py
@@ -126,8 +126,16 @@
126
]
127
128
# Default format for date/time (as it changes between machines)
129
+# Keep in sync with util/formats/en/formats.py
130
DATETIME_FORMAT = "Y-m-d H:i:s"
131
DATE_FORMAT = "Y-m-d"
132
+TIME_FORMAT = "H:i:s"
133
+
134
+FORMAT_MODULE_PATH = "pgweb.util.formats"
135
136
137
+# Django now needs these settings in a module, so duplicate them in both the
138
+# module and in settings.py to be on the safe side.
139
140
# Configure recaptcha. Most details contain keys and are thus handled
141
# in settings_local.py. Override NOCAPTCHA to actually use them.
pgweb/util/formats/__init__.py
pgweb/util/formats/en/__init__.py
pgweb/util/formats/en/formats.py
@@ -0,0 +1,4 @@
1
+# Note! Keep in sync with settings.py!
2
+DATETIME_FORMAT = "Y-m-d H:i:s"
3
+DATE_FORMAT = "Y-m-d"
4
0 commit comments