diff --git a/server/settings.py b/server/settings.py index 770b737..3b8b625 100644 --- a/server/settings.py +++ b/server/settings.py @@ -20,6 +20,7 @@ SITE_NAME = "CP NewsPro" COPYRIGHT_HOLDER = "CP" +CONTACT_ADDRESS = None SERVICES = [ {"name": "Domestic Sport", "code": "t"}, @@ -78,23 +79,27 @@ # ``CLIENT_CONFIG`` references ``CLIENT_LOCALE_FORMATS`` by reference # So we can safely update these dicts without needing to specify all formats # And they will be all reflected in the ``CLIENT_CONFIG.locale_formats`` config -CLIENT_LOCALE_FORMATS["en"].update({ - "TIME_FORMAT": "HH:mm", - "DATE_FORMAT": "MMM Do, YYYY", - "COVERAGE_DATE_FORMAT": "MMM Do, YYYY", - "COVERAGE_DATE_TIME_FORMAT": "HH:mm MMM Do, YYYY", - "DATE_FORMAT_HEADER": "long", # babel -}) -CLIENT_LOCALE_FORMATS["fr_CA"].update({ - "TIME_FORMAT": "HH:mm", - "DATE_FORMAT": "Do MMMM YYYY", - "COVERAGE_DATE_FORMAT": "LL", - "DATETIME_FORMAT": "HH:mm [le] Do MMMM YYYY", - "COVERAGE_DATE_TIME_FORMAT": "HH:mm [le] Do MMMM YYYY", - "DATE_FORMAT_HEADER": "d MMMM yyyy à H:mm zzz", # babel - "AGENDA_DATE_FORMAT_SHORT": "dddd, D MMMM", - "AGENDA_DATE_FORMAT_LONG": "dddd, D MMMM YYYY", -}) +CLIENT_LOCALE_FORMATS["en"].update( + { + "TIME_FORMAT": "HH:mm", + "DATE_FORMAT": "MMM Do, YYYY", + "COVERAGE_DATE_FORMAT": "MMM Do, YYYY", + "COVERAGE_DATE_TIME_FORMAT": "HH:mm MMM Do, YYYY", + "DATE_FORMAT_HEADER": "long", # babel + } +) +CLIENT_LOCALE_FORMATS["fr_CA"].update( + { + "TIME_FORMAT": "HH:mm", + "DATE_FORMAT": "Do MMMM YYYY", + "COVERAGE_DATE_FORMAT": "LL", + "DATETIME_FORMAT": "HH:mm [le] Do MMMM YYYY", + "COVERAGE_DATE_TIME_FORMAT": "HH:mm [le] Do MMMM YYYY", + "DATE_FORMAT_HEADER": "d MMMM yyyy à H:mm zzz", # babel + "AGENDA_DATE_FORMAT_SHORT": "dddd, D MMMM", + "AGENDA_DATE_FORMAT_LONG": "dddd, D MMMM YYYY", + } +) CLIENT_CONFIG.update( {