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"
}
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.
The solution i found to the above problem was just removing the south from virtual environment apart from all the changes mentioned above
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With