Changes between Initial Version and Version 1 of Ticket #27981, comment 5


Ignore:
Timestamp:
Mar 24, 2017, 11:13:51 AM (8 years ago)
Author:
Erdem Yılmaz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27981, comment 5

    initial v1  
    1 I just wanted to use localization and at the same time set a specific DATE_FORMAT option instead of the locale one.  Your second and third
    2  approaches can be used but they are not too useful beacuse I should find all date occurances and apply some filters, which is not a general system wide solution https://docs.djangoproject.com/en/1.10/topics/i18n/formatting/#creating-custom-format-files This custom format file structure helped me. Thanks
     1I just wanted to use localization and at the same time set a specific DATE_FORMAT option instead of the locale one.  Your second and third approaches can be used but they are not too useful beacuse I should find all date occurances and apply some filters, which is not a general system wide solution https://docs.djangoproject.com/en/1.10/topics/i18n/formatting/#creating-custom-format-files This custom format file structure helped me. Thanks
    32
    43I just curious about why when USE_L10N is True, all dates and numbers are now consistently localized by default even if some format setting (DATE_FORMAT, TIME_FORMAT etc.) is present. In my opininon setting something explicitly in the settings.py should have higher precedence than a locale format
Back to Top