summaryrefslogtreecommitdiffstats
path: root/localsettingsubuntu.py
diff options
context:
space:
mode:
authorWookey <wookey@wookware.org>2013-07-02 18:13:27 +0100
committerWookey <wookey@wookware.org>2013-07-02 18:13:27 +0100
commit1471abeda79002a69f325f45625ec9feb6be06f2 (patch)
treee525278433a5e3d18fcf9bf7821e658d7a7f226d /localsettingsubuntu.py
parent6adcadb97c5cc8c33d218cd3532a17e5f802884d (diff)
downloadtroggle-1471abeda79002a69f325f45625ec9feb6be06f2.tar.gz
troggle-1471abeda79002a69f325f45625ec9feb6be06f2.tar.bz2
troggle-1471abeda79002a69f325f45625ec9feb6be06f2.zip
Change database syntax to modern format as old style no longer
supported in django 1.4
Diffstat (limited to 'localsettingsubuntu.py')
-rw-r--r--localsettingsubuntu.py26
1 files changed, 15 insertions, 11 deletions
diff --git a/localsettingsubuntu.py b/localsettingsubuntu.py
index 420d06a..5a1f944 100644
--- a/localsettingsubuntu.py
+++ b/localsettingsubuntu.py
@@ -1,12 +1,16 @@
import sys
# link localsettings to this file for use on expo computer in austria
-DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = 'troggle' # Or path to database file if using sqlite3.
-DATABASE_USER = 'expo' # Not used with sqlite3.
-DATABASE_PASSWORD = 'gosser' # 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.
+ }
+}
REPOS_ROOT_PATH = '/home/expo/expofiles/'
@@ -21,12 +25,12 @@ TUNNEL_DATA = REPOS_ROOT_PATH + 'tunneldata/'
CAVERN = 'cavern'
THREEDTOPOS = '3dtopos'
EXPOWEB = REPOS_ROOT_PATH + 'expoweb/'
-SURVEYS = '/home/expo/'
+SURVEYS = REPOS_ROOT_PATH
SURVEY_SCANS = REPOS_ROOT_PATH + 'expoimages/'
FILES = REPOS_ROOT_PATH + 'expoimages'
-PYTHON_PATH = '/home/expo/expofiles/troggle/'
+PYTHON_PATH = REPOS_ROOT_PATH + 'hg/troggle/'
#URL_ROOT = 'http://127.0.0.1:8000'
URL_ROOT = "http://expoweb/"
@@ -36,17 +40,17 @@ EXPOWEB_URL = '/'
SURVEYS_URL = '/survey_scans/'
MEDIA_URL = URL_ROOT + DIR_ROOT + '/site_media/'
-MEDIA_ROOT = '/home/expo/expofiles/troggle/media/'
+MEDIA_ROOT = REPOS_ROOT_PATH + '/troggle/media/'
MEDIA_ADMIN_DIR = '/usr/lib/python2.4/site-packages/django/contrib/admin/media/'
TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/'
TINY_MCE_MEDIA_URL = URL_ROOT + DIR_ROOT + '/tinymce_media/'
TEMPLATE_DIRS = (
- "/home/expo/expofiles/troggle/templates",
+ PYTHON_PATH + "templates",
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
-LOGFILE = '/home/expo/expofiles/troggle/parsing_log.txt'
+LOGFILE = PYTHON_PATH + 'parsing_log.txt'