Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Auth Model Issue - AUTH_USER_MODEL Not Installed

Trying to debug this error with getting a Django project running

ImproperlyConfigured: AUTH_USER_MODEL refers to model 'accounts.User' that has not been installed

Running

python manage.py migrate

Must iterate i am in no way a python or django expert - I have simply inherited someone elses project that I am trying to get running for the team here.

I have followed steps to

install postgres
required modules including south
creating database for postgres

Any help appreciated on how to debug this.

settings/base.py contains

INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS

LOCAL_APPS = (
    'apps.core',
    'apps.accounts',
    'apps.project_tool',
    'apps.internal',
    'apps.external',
)

so apps.accounts exits - but it asks for AUTH_USER_MODEL = 'accounts.User' - should it be

AUTH_USER_MODEL = 'apps.accounts.User'?
like image 590
Ian Warner Avatar asked Oct 29 '25 05:10

Ian Warner


1 Answers

I'd assume that the accounts app hasn't been added to your INSTALLED_APPS in settings.py.

like image 110
Stefan Kögl Avatar answered Oct 30 '25 23:10

Stefan Kögl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!