Ok, i finally found where the problem was : the admin class (UserAdmin) of
my custom user class was in models.py and must be in admin.py.
I found the solution here :
https://stackoverflow.com/questions/45783147/django-lookuperror-app-accounts-doesnt-have-a-user-model
--
You received this messa
An additional information : the settings.py was generated with Django 1.9.7
Le lundi 30 octobre 2017 08:35:44 UTC+1, cjacq...@gmail.com a écrit :
>
>
> Yes, there is my INSTALLED_APPS (it was ok with Django 1.10) :
>
> INSTALLED_APPS = [
> #django
> 'django.contrib.admin',
> 'django.co
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.contr
>
> File "/Library/Python/2.7/site-packages/django/contrib/auth/forms.py",
> line 22, in
> 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 in
Hi everyone,
I'm trying to update Django from 1.10.8 to 1.11.6 but it raise me an error.
I just update Django with pip. I use Python 2.7.11 and Mac OS X and
everything was working on Django 1.10.8.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/django/utils/autore
5 matches
Mail list logo