Неправильно настроенный AUTH_USER_MODEL ссылается на модель 'core.User', которая не была установлена

Я вызываю этот метод в моем основном приложении - models.py,

from django.contrib.auth import get_user_model
User = get_user_model()

Я получаю ошибку,

Exception has occurred: ImproperlyConfigured (note: full exception trace is shown but execution is paused at: <module>)
AUTH_USER_MODEL refers to model 'core.User' that has not been installed

отладчик указывает на эту строку

Я нашел проблему,

User = get_user_model()

Я вставил следующий код внутри core app models.py

Вернуться на верх