ImproperlyConfigured: AUTH_USER_MODEL refers to model 'user.ExtendedUserModel' that has not been installed

3,764 views
Skip to first unread message

aryak.s...@lexmark.com

unread,
Dec 4, 2016, 10:43:34 AM12/4/16
to django-oscar
I am trying to run the sandbox site (which I've done successfully ) and I am also trying enable the user app so that my model gets migrated.  

So far I've followed the docs religiously I have done the following: 

+ oscar.get_core_apps(['apps.user']) #Added this line to the settings.py file

AUTH_USER_MODEL = 'user.ExtendedUserModel' #Now I am trying to point to this as my auth model


But no matter what I try, I keep getting the following error:

ImproperlyConfigured: AUTH_USER_MODEL refers to model 'user.ExtendedUserModel' that has not been installed

Anyone has an insight on this?

a...@livebetterwith.com

unread,
Dec 5, 2016, 4:13:40 AM12/5/16
to django-oscar
The output of that function is a list; are you adding that list to the list `INSTALLED_APPS` ?

Check this page of the docs. http://django-oscar.readthedocs.io/en/stable/topics/customisation.html#replace-oscar-s-app-with-your-own-in-installed-apps

aryak.s...@lexmark.com

unread,
Dec 6, 2016, 2:20:27 AM12/6/16
to django-oscar
Yes I have added it to INSTALLED_APPS. I've done it in the following manner:

INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.admin',
    'django.contrib.flatpages',
    'django.contrib.staticfiles',
    'django.contrib.sitemaps',
    'django_extensions',

    # Debug toolbar + extensions
    'debug_toolbar',
    'apps.gateway',     # For allowing dashboard access
    'widget_tweaks',
]+ oscar.get_core_apps(['apps.user']) #Added this line to the settings.py file

aryak.s...@lexmark.com

unread,
Dec 6, 2016, 2:21:15 AM12/6/16
to django-oscar
I forgot to add the INSTALLED_APPS section in my previous post. What am I missing exactly?


On Sunday, December 4, 2016 at 9:13:34 PM UTC+5:30, aryak.s...@lexmark.com wrote:

a...@livebetterwith.com

unread,
Dec 8, 2016, 6:21:17 AM12/8/16
to django-oscar
Hmm; have you made your own user models or are you forking oscars customer model?

Aryak Sengupta

unread,
Jan 1, 2017, 9:32:04 AM1/1/17
to django-oscar
I'm creating my own user model. The one which is given in this documentation -  http://django-oscar.readthedocs.io/en/latest/howto/use_a_custom_user_model.html . I still facing the same problem. 

Actually, let me tell you about my requirement. I need to add a phone number field along with the username and email id for a user. What is the best way to accomplish this? Should I go ahead and create my own user model(like I have tried doing above) or should I fork out the customer app of oscar?

A little heads up on any one of the methods will be extremely helpful. And apologies for the delayed reply. I was tangled up in some other work. 

Thanks.

Aryak Sengupta

unread,
Jan 1, 2017, 10:50:13 AM1/1/17
to django-oscar
*I am still facing the same problem. [Typo]

Aryak Sengupta

unread,
Jan 3, 2017, 2:06:59 PM1/3/17
to django-oscar
Hi, 

It will be really helpful if you can provide your input on this. Thanks :) 


On Sunday, December 4, 2016 at 9:13:34 PM UTC+5:30, aryak.s...@lexmark.com wrote:

Aryak Sengupta

unread,
Jan 15, 2017, 7:59:23 AM1/15/17
to django-oscar
Can anyone give me an update on this?


On Sunday, December 4, 2016 at 9:13:34 PM UTC+5:30, aryak.s...@lexmark.com wrote:
Reply all
Reply to author
Forward
0 new messages