“dependencies references nonexistent parent node” error after 'pinax.notifications' added in INSTALLED_APPS
在
1 | pip install pinax-notifications |
之后
并在INSTALLED_APPS中添加了'pinax.notifications'
出现以下错误。
使用python 2.7.9,django 1.7.0。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | Traceback (most recent call last): File"C:\githome\eventmatch\wsgi\myproject\manage.py", line 11, in execute_from_command_line(sys.argv) File"C:\Python27\lib\site-packages\django\core\management\__init__.py", line 385, in execute_from_command_line utility.execute() File"C:\Python27\lib\site-packages\django\core\management\__init__.py", line 377, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File"C:\Python27\lib\site-packages\django\core\management\base.py", line 288, in run_from_argv self.execute(*args, **options.__dict__) File"C:\Python27\lib\site-packages\django\core\management\base.py", line 338, in execute output = self.handle(*args, **options) File"C:\Python27\lib\site-packages\django\core\management\commands\makemigrations.py", line 57, in handle loader = MigrationLoader(None, ignore_no_migrations=True) File"C:\Python27\lib\site-packages\django\db\migrations\loader.py", line 48, in __init__ self.build_graph() File"C:\Python27\lib\site-packages\django\db\migrations\loader.py", line 241, in build_graph self.graph.add_dependency(migration, key, parent) File"C:\Python27\lib\site-packages\django\db\migrations\graph.py", line 42, in add_dependency raise KeyError("Migration %s dependencies references nonexistent parent node %r" % (migration, parent)) KeyError: u"Migration notifications.0001_initial dependencies references nonexistent parent node (u'contenttypes', u'0002_remove_content_type_name')" |
这似乎在这个pinax通知版本上打破了。 发现的
refs:https://github.com/pinax/pinax-notifications/issues/47