赞
踩
在服务器上部署更新的时候,忘记更新settings.py中相关配置了
- # settings.py
-
- AUTH_USER_MODEL = 'YourAppName.YourCustomUserModelClassName'
django 执行 runserver 的时候 报错 raise SystemCheckError(msg) django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
auth.User.groups: (fields.E304) Reverse accessor 'Group.user_set' for 'auth.User.groups' clashes with reverse accessor for 'appname.UserInfo.groups'.
HINT: Add or change a related_name argument to the definition for 'auth.User.groups' or 'appname.UserInfo.groups'.
auth.User.user_permissions: (fields.E304) Reverse accessor 'Permission.user_set' for 'auth.User.user_permissions' clashes with reverse accessor for 'appname.UserInfo.user_permissions'.
HINT: Add or change a related_name argument to the definition for 'auth.User.user_permissions' or 'appname.UserInfo.user_permissions'.
appname.UserInfo.groups: (fields.E304) Reverse accessor 'Group.user_set' for 'appname.UserInfo.groups' clashes with reverse accessor for 'auth.User.groups'.
HINT: Add or change a related_name argument to the definition for 'appname.UserInfo.groups' or 'auth.User.groups'.
appname.UserInfo.user_permissions: (fields.E304) Reverse accessor 'Permission.user_set' for 'appname.UserInfo.user_permissions' clashes with reverse accessor for 'auth.User.user_permissions'.
HINT: Add or change a related_name argument to the definition for 'appname.UserInfo.user_permissions' or 'auth.User.user_permissions'.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。