https://stackoverflow.com/questions/53402437/formatting-datetimefield-in-django
settings中
DATETIME_FORMAT="%Y-%m-%d%H:%M:%S"
DATE_FORMAT = 'Y-m-d'
L10N=False (我注释掉了USE_L10N = True django+python2)
USE_TZ=False(注释USE_TZ = True)
完美解决,全局修改
https://stackoverflow.com/questions/53402437/formatting-datetimefield-in-django
settings中
DATETIME_FORMAT="%Y-%m-%d%H:%M:%S"
DATE_FORMAT = 'Y-m-d'
L10N=False (我注释掉了USE_L10N = True django+python2)
USE_TZ=False(注释USE_TZ = True)
完美解决,全局修改