Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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"
}
like image 947
Shiva Krishna Bavandla Avatar asked Apr 15 '15 10:04

Shiva Krishna Bavandla


2 Answers

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.

like image 99
niconoe Avatar answered Oct 26 '22 00:10

niconoe


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

like image 35
Shiva Krishna Bavandla Avatar answered Oct 25 '22 23:10

Shiva Krishna Bavandla