﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21411	CommandError: One or more models did not validate but backtrace not saying anything useful	artscoop	nobody	"Hi,
There is a typo in my code (30 000 lines), which I cannot find. I cannot `runserver`, `validate` or `shell_plus` (django_extensions). I've had this problem with many versions of Django, but somehow managed to find where the error was. This time, I can't, and all I get is this cryptic error, absolutely not related to the position of the error, even with the `--traceback` and `verbosity` options.

{{{
Traceback (most recent call last):
  File ""/home/username/virtualenv/project/one/manage.py"", line 8, in <module>
    execute_from_command_line(sys.argv)
  File ""/home/username/virtualenv/project/local/lib/python2.7/site-packages/django/core/management/__init__.py"", line 399, in execute_from_command_line
    utility.execute()
  File ""/home/username/virtualenv/project/local/lib/python2.7/site-packages/django/core/management/__init__.py"", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/home/username/virtualenv/project/local/lib/python2.7/site-packages/django/core/management/base.py"", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""/home/username/virtualenv/project/local/lib/python2.7/site-packages/django/core/management/base.py"", line 285, in execute
    output = self.handle(*args, **options)
  File ""/home/username/virtualenv/project/local/lib/python2.7/site-packages/django/core/management/base.py"", line 415, in handle
    return self.handle_noargs(**options)
  File ""/home/username/virtualenv/project/local/lib/python2.7/site-packages/django/core/management/commands/validate.py"", line 10, in handle_noargs
    self.validate(display_num_errors=True)
  File ""/home/username/virtualenv/project/local/lib/python2.7/site-packages/django/core/management/base.py"", line 314, in validate
    raise CommandError(""One or more models did not validate:\n%s"" % error_text)
django.core.management.base.CommandError: One or more models did not validate:
menu.bookmark: 'user' has a relation with model user.User, which has either not been installed or is abstract.
reversion.revision: 'user' has a relation with model user.User, which has either not been installed or is abstract.
auth.user: Model has been swapped out for 'user.User' which has not been installed or is abstract.
moderation.moderatedobject: 'moderated_by' has a relation with model user.User, which has either not been installed or is abstract.
moderation.moderatedobject: 'changed_by' has a relation with model user.User, which has either not been installed or is abstract.
admin.logentry: 'user' has a relation with model user.User, which has either not been installed or is abstract.
dashboard.dashboardpreferences: 'user' has a relation with model user.User, which has either not been installed or is abstract.
}}}

In the `shell` command, I can import the `User` model and several others, so I know there is no typo in this model."	Bug	closed	Documentation	1.6	Normal	worksforme	validate	Baptiste Mispelon	Accepted	0	0	0	0	0	0
