From 1471abeda79002a69f325f45625ec9feb6be06f2 Mon Sep 17 00:00:00 2001 From: Wookey Date: Tue, 2 Jul 2013 18:13:27 +0100 Subject: Change database syntax to modern format as old style no longer supported in django 1.4 --- localsettingswindows.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'localsettingswindows.py') diff --git a/localsettingswindows.py b/localsettingswindows.py index c9f67e4..578b152 100644 --- a/localsettingswindows.py +++ b/localsettingswindows.py @@ -1,9 +1,13 @@ -DATABASE_ENGINE = '' # '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.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'troggle', # Or path to database file if using sqlite3. + 'USER': 'expo', # Not used with sqlite3. + 'PASSWORD': 'gosser', # Not used with sqlite3. + 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # Set to empty string for default. Not used with sqlite3. + } +} SURVEX_DATA = 'c:\\Expo\\loser\\' CAVERN = 'cavern' -- cgit v1.2.3