Set django backend to Chinese and time zone to Shanghai

1. Enter the project setting directory to modify the code as follows:

LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'Asia/Shanghai'

USE_I18N = True

USE_L10N = True

USE_TZ = False

2. Restart the project and enter the background verification

Published 42 original articles · praised 11 · 20,000+ views

Guess you like

Origin blog.csdn.net/QWERTY55555/article/details/105379393