Update db settings for new database config format
authorMagnus Hagander <magnus@hagander.net>
Sat, 25 May 2013 18:11:55 +0000 (14:11 -0400)
committerMagnus Hagander <magnus@hagander.net>
Sun, 16 Jun 2013 14:35:21 +0000 (16:35 +0200)
pgweb/settings.py

index 8bf9fde6e87379cac8cd2306a4124ff2a6fc21f3..27cdb662c5b6dae8136b5a446ef3b4e54692f2bc 100644 (file)
@@ -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