日期时间值,例如day = "2017-9-2 00:00:00",
day = "2017-9-2 00:00:00"
在模板中使用时,
index.html
... {{day}} ...
Django自动将其转换为Sept. 2, 2017, midnight。
Sept. 2, 2017, midnight
如何禁用此行为?
我希望它以其原始格式显示"2017-9-2 00:00:00"。
"2017-9-2 00:00:00"
django django-templates python-datetime
django ×1
django-templates ×1
python-datetime ×1