localization of email headers, added the datetime format settings in test_project settings.py with some docs

This commit is contained in:
Christian Wiegand
2016-10-06 14:49:16 +02:00
parent 6421efff56
commit 169d07b8fa
51 changed files with 1384 additions and 1134 deletions
+19
View File
@@ -106,6 +106,25 @@ USE_L10N = False
USE_TZ = True
# Webmail datetime formats according to
# https://docs.djangoproject.com/en/1.10/ref/templates/builtins/
# modoboa-webmail is able to show the datetime of emails
# in two ways.
# If none is provided, default is RFC 5322 formatted date.
# For this, USE_L10N must be set to True!
# emails of the last week
# en-us style
WEBMAIL_SHORT_DATETIME_FORMAT = "l, P"
# european style
# WEBMAIL_SHORT_DATETIME_FORMAT = "l, H:i"
# emails older than a week
# en-us style
WEBMAIL_DATETIME_FORMAT = "N, j Y P"
# european style
# WEBMAIL_DATETIME_FORMAT = "d. N Y H:i"
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/