djano的模型类的后台管理

创建管理员

命令:python manage.py createsuperuser

配置

# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/

# LANGUAGE_CODE = 'en-us'
#
# TIME_ZONE = 'UTC'

LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'

USE_I18N = True

USE_L10N = True

USE_TZ = True

猜你喜欢

转载自www.cnblogs.com/bestjdg/p/11923264.html