How do I make Django's DATETIME_FORMAT active?

前端 未结 4 2035
渐次进展
渐次进展 2021-02-13 23:49

Where should DATETIME_FORMAT be placed for it to have effect on the display of date-time in the Django admin site (Django’s automatic admin interface)?

Documentation for

4条回答
  •  不知归路
    2021-02-13 23:59

    As Ciro Santilli told, localization format overrides DATETIME_FORMAT in settings when USE_L10N = True. But you can still override DATETIME_FORMAT and other date/time formats by creating custom format files as described in Django documentation.

    See detailed answer here.

提交回复
热议问题