没有南数据库模块'south.db.postgresql_psycopg2'为您的数据库django [英] There is no South database module 'south.db.postgresql_psycopg2' for your database django

查看:249
本文介绍了没有南数据库模块'south.db.postgresql_psycopg2'为您的数据库django的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个django应用程序版本为 1.6.5 ,我试图升级到 1.8 但是在django版本增加到 1.8之后,我得到了以下错误。

 数据库没有南数据库模块'south.db.postgresql_psycopg2'。请选择支持的数据库,检查SOUTH_DATABASE_ADAPTER [S]设置,或从INSTALLED_APPS中删除South。 

代码

  INSTALLED_APPS = [
'django_messages',
'头像',
'tinymce',
'south',
'tracking',
...
]

DATABASES = {
'default':{
'ENGINE':'django.db.backends.postgresql_psycopg2'
'HOST':'127.0.0.1',
'NAME':'xxxxxx',
'USER':'xxxxxx',
'PASSWORD':'xxxxxx'
},
}

那么问题是什么,需要什么完成修复这个?



我甚至尝试使用以下设置,并在运行django本地服务器时收到相同的错误

  SOUTH_DATABASE_ADAPTERS = {
'default':south.db。postgresql_psycopg2
}


解决方案

我发现上述问题的解决方案除了上述


之外的所有更改外,只是从虚拟环境中移除南部

I have a django app with version as 1.6.5, i am trying to upgrade it to 1.8, but on the way i got the below error right after the django version was increased to 1.8

There is no South database module 'south.db.postgresql_psycopg2' for your database. Please either choose a supported database, check for SOUTH_DATABASE_ADAPTER[S] settings, or remove South from INSTALLED_APPS.

Code

INSTALLED_APPS = [
   'django_messages',
    'avatar',
    'tinymce',
    'south',
    'tracking',
    ......
  ]

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'HOST': '127.0.0.1',
        'NAME': 'xxxxxx',
        'USER': 'xxxxxx',
        'PASSWORD': 'xxxxxx',
        },
    }

So what was the problem and what need to be done to fix this ?

I have even tried with the below setting and receiving the same error when running the django local server

SOUTH_DATABASE_ADAPTERS = {
    'default': "south.db. postgresql_psycopg2"
}

解决方案

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

这篇关于没有南数据库模块'south.db.postgresql_psycopg2'为您的数据库django的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆