#24848: makemigrations fails with 'ValueError: Dependency on unknown app' when
using custom user model
----------------------------+--------------------
Reporter: Ernest0x | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
Django version 1.8.2
traceback:
{{{
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/path/to/python/env/lib/python3.4/site-
packages/django/core/management/__init__.py", line 338, in
execute_from_command_line
utility.execute()
File "/path/to/python/env/lib/python3.4/site-
packages/django/core/management/__init__.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/path/to/python/env/lib/python3.4/site-
packages/django/core/management/base.py", line 390, in run_from_argv
self.execute(*args, **cmd_options)
File "/path/to/python/env/lib/python3.4/site-
packages/django/core/management/base.py", line 441, in execute
output = self.handle(*args, **options)
File "/path/to/python/env/lib/python3.4/site-
packages/django/core/management/commands/makemigrations.py", line 63, in
handle
loader = MigrationLoader(None, ignore_no_migrations=True)
File "/path/to/python/env/lib/python3.4/site-
packages/django/db/migrations/loader.py", line 47, in __init__
self.build_graph()
File "/path/to/python/env/lib/python3.4/site-
packages/django/db/migrations/loader.py", line 287, in build_graph
parent = self.check_key(parent, key[0])
File "/path/to/python/env/lib/python3.4/site-
packages/django/db/migrations/loader.py", line 165, in check_key
raise ValueError("Dependency on unknown app: %s" % key[0])
ValueError: Dependency on unknown app: users
}}}
Example project is included as an attachment.
--
Ticket URL: <https://code.djangoproject.com/ticket/24848>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.8b137a555c9e9de97de4da47f82bc417%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.