Using backend name django.db.backends.postgresql

Using new backend name which come with Django 1.9 django.db.backends.postgresql instead of django.db.backends.postgresql_psycopg2
This commit is contained in:
Mounir 2016-02-18 15:21:55 +01:00
parent 24e370cb72
commit 3c0eeddbb7

View File

@ -93,7 +93,7 @@ DATABASES = {
if os.environ.get("DB") == "postgres":
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'hc',
'USER': 'postgres',
'TEST': {'CHARSET': 'UTF8'}