Monday, October 30, 2017

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed


Yes, there is my INSTALLED_APPS (it was ok with Django 1.10) :

INSTALLED_APPS = [
#django
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'django.contrib.flatpages',
'django.contrib.humanize',
#third-parties
'bootstrapform',
'django_bleach',
'django_tables2',
'easy_thumbnails',
'emoticons',
'form_utils',
'mathfilters',
'tinymce',
#assoweb
'airfield',
'authex',
'blog',
'challenge',
'core',
'django_resource',
'files',
'help',
'mailing',
'questionnaire',
'section',
'treasury',
'year',
]

And later :

AUTH_USER_MODEL = 'authex.UserProfile'

Thanks for helping. :)

Le lundi 30 octobre 2017 07:56:48 UTC+1, James Schneider a écrit :
  File "/Library/Python/2.7/site-packages/django/contrib/auth/forms.py", line 22, in <module>
    UserModel = get_user_model()
  File "/Library/Python/2.7/site-packages/django/contrib/auth/__init__.py", line 198, in get_user_model
    "AUTH_USER_MODEL refers to model '%s' that has not been installed" % settings.AUTH_USER_MODEL
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed


Any ideas ? Thanks !


Does INSTALLED_APPS in your settings.py file contain an entry for 'authex'? 

-James

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/37b729c3-f096-45bb-aab0-a7328d133585%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment