From ce19b2bbd930cdfab73dc4b804057046f802b7c7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Tue, 19 Sep 2017 10:57:08 +0200 Subject: [PATCH] set postgresql in config file --- conf/settings.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/conf/settings.py b/conf/settings.py index b327858..e4ea206 100644 --- a/conf/settings.py +++ b/conf/settings.py @@ -38,7 +38,7 @@ MANAGERS = ADMINS DATABASES = { 'default': { # Database engine - 'ENGINE': 'django.db.backends.mysql', + 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Database name 'NAME': '__NAME__', # Database user @@ -49,13 +49,6 @@ DATABASES = { 'HOST': '', # Set to empty string for default 'PORT': '', - # Additional database options - 'OPTIONS': { - # In case of older MySQL server which has default MariaDB - # 'init_command': "SET storage_engine=INNODB; ", - # If your server supports it, see Unicode issues above - 'charset': 'utf8mb4', - } } }