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

posted @ 2019-11-24 17:25  一起学编程  阅读(159)  评论(0编辑  收藏  举报