There is no South database module 'south.db.postgresql_psycopg2' for your database django

我怕爱的太早我们不能终老 提交于 2019-12-05 01:25:30

The solution i found to the above problem was just removing the south from virtual environment apart from all the changes mentioned above

You are probably still referencing to South with an import somewhere.

Just:

pip uninstall south

Then:

python manage.py runserver

And resolve import errors.

Since Django 1.7, migrations are part of the framework. Instead of using South, you probably want to migrate to django.db.migrations.

Generally speaking, you should always read release notes (for 1.7 and 1.8) when doing such an update.

avs

Django with version >= 1.7 use built-in migration. You don't need to use south.

For more details about Django migration framework you can refer release note - https://docs.djangoproject.com/en/1.9/releases/1.7/#schema-migrations

Django docs - https://docs.djangoproject.com/en/1.8/topics/migrations/

Upgading from South - https://docs.djangoproject.com/en/1.8/topics/migrations/#upgrading-from-south

If you are using Django < 1.7, you should also install South >= 1.0.1 if you haven’t already. This is not listed as a dependency for the sake of users who are on Django >= 1.7 and don’t need it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!