I got this following error while running the django project.
SystemCheckError: System check identified some issues:
ERRORS:
auth.User.groups: (fields.E304) Reverse accessor 'Group.user_set' for 'auth.User.groups' clashes with reverse accessor for 'restaccount.DriverUser.groups'.
HINT: Add or change a related_name argument to the definition for 'auth.User.groups' or 'restaccount.DriverUser.groups'.
auth.User.user_permissions: (fields.E304) Reverse accessor 'Permission.user_set' for 'auth.User.user_permissions' clashes with reverse accessor for 'restaccount.DriverUser.user_permissions'.
HINT: Add or change a related_name argument to the definition for 'auth.User.user_permissions' or 'restaccount.DriverUser.user_permissions'.
restaccount.DriverUser.groups: (fields.E304) Reverse accessor 'Group.user_set' for 'restaccount.DriverUser.groups' clashes with reverse accessor for 'auth.User.groups'.
HINT: Add or change a related_name argument to the definition for 'restaccount.DriverUser.groups' or 'auth.User.groups'.
restaccount.DriverUser.user_permissions: (fields.E304) Reverse accessor 'Permission.user_set' for 'restaccount.DriverUser.user_permissions' clashes with reverse accessor for 'auth.User.user_permissions'.
SOLUTION:
The following error indicates that the relation with model 'AUTH_USER_MODEL', which is not installed in settings.py.
Settings.py: Add the 'AUTH_USER_MODEL'
AUTH_USER_MODEL = 'restaccount.DriverUser'
VIDEO GUIDE:
Post your comments / questions
Recent Article
- How to create custom 404 error page in Django?
- Requested setting INSTALLED_APPS, but settings are not configured. You must either define..
- ValueError:All arrays must be of the same length - Python
- Check hostname requires server hostname - SOLVED
- How to restrict access to the page Access only for logged user in Django
- Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default
- Addition of two numbers in django python
- The request was aborted: Could not create SSL/TLS secure channel -Error in Asp.net
Related Article