安装:
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什么的,否则报错!