INSTALLED_APPS中添加'pinax.notifications'后"dependencies references nonexistent parent node"错误



pip install pinax-notifications
和"pinax。在INSTALLED_APPS中添加了notifications出现以下错误:

使用python 2.7.9, django 1.7.0.

<>之前回溯(最近一次调用):文件"C: gihome eventmatchwsgimyproject management .py",第11行,在execute_from_command_line (sys.argv)文件"C:Python27libsite-packagesdjangocoremanagement__init__.py",第385行,在execute_from_command_lineutility.execute ()文件"C:Python27libsite-packagesdjangocoremanagement__init__.py377,执行中self.fetch_command(子命令).run_from_argv (self.argv)文件"C:Python27libsite-packagesdjangocoremanagementbase.py",第288行,在run_from_argv自我。执行(* args, * * options.__dict__)文件"C:Python27libsite-packagesdjangocoremanagementbase.py",第338行,执行输出=自我。处理(* args, * *选项)文件"C:Python27libsite-packagesdjangocoremanagementcommandsmakemigrations.py",第57行,在handle .py中loader = MigrationLoader(None, ignore_no_migrations=True)文件"C:Python27libsite-packagesdjangodbmigrationsloader.py",第48行,在__init__self.build_graph ()文件"C:Python27libsite-packagesdjangodbmigrationsloader.py",第241行,在build_graph .py中self.graph。Add_dependency (migration, key, parent)文件"C:Python27libsite-packagesdjangodbmigrationsgraph.py",第42行,在add_dependency .py中抛出KeyError("Migration %s依赖引用不存在父节点%r" % (Migration, parent))KeyError: u"迁移通知。0001_initial dependencies引用不存在父节点(u'contenttypes', u'0002_remove_content_type_name')"

这似乎是这个pinax-notifications版本的一个漏洞。我发现WORKAROUND降级为pinax-notifications==2.0.1。现在迁移似乎工作得很好

参考文献:https://github.com/pinax/pinax-notifications/issues/47

最新更新