ValueError: The field admin.LogEntry.user was declared with a lazy reference to ‘authentication.customuser’, but app ‘authentication’ doesn’t provide model ‘customuser’. The field authentication.UserProfile.user was declared with a lazy reference to ‘auth’
PS C:\Users\Hp\Desktop\my final year project\django_project\init_auth_django-master> python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, authentication, contenttypes, sessions
Traceback (most recent call last):
File "C:\Users\Hp\Desktop\my final year project\django_project\init_auth_django-master\manage.py", line 22, in <module>
main()
File "C:\Users\Hp\Desktop\my final year project\django_project\init_auth_django-master\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
utility.execute()
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\core\management\__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\core\management\base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\core\management\base.py", line 459, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\core\management\base.py", line 107, in wrapper
res = handle_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\core\management\commands\migrate.py", line 302, in handle
pre_migrate_apps = pre_migrate_state.apps
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\utils\functional.py", line 47, in __get__
res = instance.__dict__[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\db\migrations\state.py", line 566, in apps
return StateApps(self.real_apps, self.models)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Hp\Desktop\my final year project\venv\Lib\site-packages\django\db\migrations\state.py", line 637, in __init__
raise ValueError("\n".join(error.msg for error in errors))
ValueError: The field admin.LogEntry.user was declared with a lazy reference to 'authentication.customuser', but app 'authentication' doesn't provide model 'customuser'.
The field authentication.UserProfile.user was declared with a lazy reference to 'authentication.customuser', but app 'authentication' doesn't provide model 'customuser'.
PS C:\Users\Hp\Desktop\my final year project\django_project\init_auth_django-master>