From 5d608f1fe4bc8f7657528b53a849ea76155263c9 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 25 May 2013 14:11:55 -0400 Subject: [PATCH] Update db settings for new database config format --- pgweb/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pgweb/settings.py b/pgweb/settings.py index 8bf9fde6..27cdb662 100644 --- a/pgweb/settings.py +++ b/pgweb/settings.py @@ -9,12 +9,12 @@ ADMINS = ( MANAGERS = ADMINS -DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = '' # Or path to database file if using sqlite3. -DATABASE_USER = '' # Not used with sqlite3. -DATABASE_PASSWORD = '' # Not used with sqlite3. -DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. -DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. +DATABASES={ + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'pgweb', + } + } # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name