Monday, December 12, 2016

Re: get_profile() function can not resolve keyword 'user' -- no 'user' field exists in model.py or data tables.


Thanks Alex,

Following the links you posted I've moved forward towards adding a custom user and getting rid of get_profile().

This process though has introduced other issues.

The error occurs both when running manage syncdb and when debugging view that calls user.
 
"AUTH_USER_MODEL refers to model 'books.user' that has not been installed"

My settings file clearly contains AUTH_USER_MODEL = 'books.user'

And class user is defined per instructions online regarding migrating to a custom user
inside of books.models.py.

It appears to me that user as defined in books.models.py is installed on the code level and am wondering where else the error message might be referencing that tells me it is not 'installed'.

Any suggested appreciated.

Thanks 

--
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/afc26acd-3d2c-47ce-b696-4be15fb61357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment