Django2.0之使用xadmin

安装:

https://github.com/sshwsfc/xadmin

pip3 install git+git://github.com/sshwsfc/xadmin.git@django2

Django2.0配置:
INSTALLED_APPS = [
    ......
    'xadmin',
    'crispy_forms'
]


LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'Asia/Shanghai'

USE_I18N = True

USE_L10N = True

USE_TZ = False

注意点:

  • models中id不要换成nid什么的,否则报错!

猜你喜欢

转载自blog.csdn.net/qq_33733970/article/details/80951967