Someone familiar with the internals might have an idea, but from a non-contributor's perspective, the different management commands seem to have different strategies for loading up the models. An error in syncdb doesn't mean you'll get the same error in shell or runserver.
Debuggers will always be a matter of personal preference, but I use the one in PyCharm. On Mon, Dec 12, 2016 at 2:23 PM, Darrell Jonsson <jons...@well.com> wrote: > Hi Alex, > > Is there anyway on the command line I can determine what models, > the app actually sees in the module in question? > > Otherwise can you recommend a debugger that might help. > > Thanks > > > > > On 12/12/2016 9:07 PM, Alex Heyden wrote: > >> The first place to look would be the INSTALLED_APPS setting in your >> settings file, but honestly that's one of those errors that could >> ultimately mean a lot of things. I've had it thrown on things ranging from >> circular imports to admin configuration issues to bad migrations. It might >> be time to spin up a debugger. >> >> On Mon, Dec 12, 2016 at 1:52 PM, NoviceSortOf <dljonsson2...@gmail.com >> <mailto:dljonsson2...@gmail.com>> wrote: >> >> >> 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 <http://books.models.py>. >> >> It appears to me that user as defined in books.models.py >> <http://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+unsubscr...@googlegroups.com >> <mailto:django-users+unsubscr...@googlegroups.com>. >> To post to this group, send email to django-users@googlegroups.com >> <mailto:django-users@googlegroups.com>. >> Visit this group at https://groups.google.com/group/django-users >> <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 >> <https://groups.google.com/d/msgid/django-users/afc26acd-3d2 >> c-47ce-b696-4be15fb61357%40googlegroups.com?utm_medium=email >> &utm_source=footer>. >> >> >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Django users" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/django-users/oPW7Vy2YNqY/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> django-users+unsubscr...@googlegroups.com <mailto:django-users+unsubscri >> b...@googlegroups.com>. >> To post to this group, send email to django-users@googlegroups.com >> <mailto: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/ms >> gid/django-users/CA%2Bv0ZYVw-bUTLFJ65%2B7bgGLjeMz7RUtQ6g9sA >> j3MO73znwPP-A%40mail.gmail.com <https://groups.google.com/d/m >> sgid/django-users/CA%2Bv0ZYVw-bUTLFJ65%2B7bgGLjeMz7RUtQ6g9sA >> j3MO73znwPP-A%40mail.gmail.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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+unsubscr...@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/ms > gid/django-users/76a2c335-ff30-ea62-116d-9680f48225b6%40well.com. > > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@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/CA%2Bv0ZYWOTmjtM1JW154AAYDGCHo0s9sGdzhLv9%3DWddzaypWPTA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.