【发布时间】:2014-07-06 22:33:10
【问题描述】:
Django 1.7 具有内置的数据库迁移机制。但是,我想为 ols 第三方 django 应用程序运行 South 迁移。
我未能使用 Django 1.7 执行“syncdb”管理命令来创建 South 模型:
/south/management/commands/syncdb.py", line 82, in handle_noargs
old_app_store, cache.app_store = cache.app_store, SortedDict([
AttributeError: 'Apps' object has no attribute 'app_store'
【问题讨论】:
-
使用 Django 1.6 创建了 south_migrationhistory 表
-
现在在 syncdb 上出现此错误:/south/hacks/django_1_0.py",第 68 行,在 clear_app_cache self.old_app_models, cache.app_models = cache.app_models, {} AttributeError: 'Apps' object没有属性“app_models”
-
对此有什么解决办法吗?神秘。
标签: django django-south django-1.7