c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Python

Add or change a related_name argument to the definition for 'auth.User.groups' or 'DriverUser.groups'. -Django ERROR

| | django , python , web

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: