当前位置:   article > 正文

Django项目更新后django 执行 runserver 的时候 报错 raise SystemCheckError(msg) django.core.management.base.System

raise systemcheckerror(msg) django.core.management.base.systemcheckerror: sy

 在服务器上部署更新的时候,忘记更新settings.py中相关配置了

 

  1. # settings.py
  2. 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'.

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号