django - 无法在 Django 1.7 中创建 South 数据库模型

标签 django django-south django-1.7

Django 1.7 具有内置的数据库迁移机制。但是,我想为 ols 第三方 django 应用程序运行南向迁移。

我无法使用 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 上启动了一个项目,但已升级到 Django 1.7,您可能不会立即看到此错误。但是,如果您随后对项目进行新的 checkout 和数据库构建,则会出现这个神秘的错误。

解决方案是从您的 INSTALLED_APPS 中删除 South(也可能包括 pip 的 requirements.txt)。您不再需要它们了。

关于django - 无法在 Django 1.7 中创建 South 数据库模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23729722/

相关文章:

python - 将静态(对于 Django 项目)上传并使用到 AWS S3

python - Django:查询ManyToManyField计数?

django - 修改 Django AutoField 起始值

python - 未获取 Django 1.7 迁移

Django-rest-auth基本授权错误{"password": ["(This field is required"]}

django - 是否可以在 Django 的测试中使用来自其他应用程序的固定装置?

python - 如何从 Pylint 中排除南移?

django - 南 : Why creating a new empty migration when pulling in other developer's model changes?

python - 编程错误 : relation "django_session" does not exist error after installing Psycopg2