Shi*_*dla 13 django postgresql psycopg2 django-south
我有一个版本的django应用程序1.6.5,我正在尝试将其升级到1.8,但是在django版本增加到之后我就得到了以下错误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.
Run Code Online (Sandbox Code Playgroud)
码
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',
},
}
Run Code Online (Sandbox Code Playgroud)
那么问题是什么以及需要做些什么才能解决这个问题呢?
我甚至尝试使用以下设置并在运行django本地服务器时收到相同的错误
SOUTH_DATABASE_ADAPTERS = {
'default': "south.db. postgresql_psycopg2"
}
Run Code Online (Sandbox Code Playgroud)
小智 9
你可能仍然在某个地方引用了South.
只是:
pip uninstall south
Run Code Online (Sandbox Code Playgroud)
然后:
python manage.py runserver
Run Code Online (Sandbox Code Playgroud)
并解决导入错误.
| 归档时间: |
|
| 查看次数: |
10585 次 |
| 最近记录: |