I finally decided to remove the 'djcontacts' entry from my INSTALLED_APPS,
and now I'm getting this:
{{{
System check identified no issues (0 silenced).
Unhandled exception in thread started by <function wrapper at
0x7f6addae8848>
Traceback (most recent call last):
File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-
packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-
packages/django/core/management/commands/runserver.py", line 112, in
inner_run
self.check_migrations()
File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-
packages/django/core/management/commands/runserver.py", line 164, in
check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-
packages/django/db/migrations/executor.py", line 19, in __init__
self.loader = MigrationLoader(self.connection)
File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-
packages/django/db/migrations/loader.py", line 47, in __init__
self.build_graph()
File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-
packages/django/db/migrations/loader.py", line 312, in build_graph
_reraise_missing_dependency(migration, parent, e)
File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-
packages/django/db/migrations/loader.py", line 282, in
_reraise_missing_dependency
raise exc
django.db.migrations.graph.NodeNotFoundError: Migration
smiles.0001_initial dependencies reference nonexistent parent node
(u'djcontacts', u'0001_initial')
}}}
*The* very first migration I had in my 'smiles' app years ago referenced
'djcontacts'. Even though 'smiles' currently doesn't have ForeignKeys to
djcontacts, it looks like I might need to keep the decrepit app around
forever...
One work-around is commenting out the dependency in 0001_initial, but that
seems 'hacky' and I'm guessing might cause problems if I ever deploy the
application from scratch somewhere else.
--
Ticket URL: <https://code.djangoproject.com/ticket/25327>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* component: Uncategorized => Migrations
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/25327#comment:1>
Comment (by aaugustin):
If you squash migrations, you should be able to remove unused
applications.
--
Ticket URL: <https://code.djangoproject.com/ticket/25327#comment:2>
* status: new => closed
* resolution: => worksforme
Comment:
As explained by Aymeric please use squashmigrations as described in the
documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/25327#comment:3>