diff options
author | Wookey <wookey@wookware.org> | 2014-09-11 06:33:34 +0100 |
---|---|---|
committer | Wookey <wookey@wookware.org> | 2014-09-11 06:33:34 +0100 |
commit | 8563edd4a7a9961cd66644a04bc598e4bf0a29b1 (patch) | |
tree | 8a14453461208b9a14b855a78aea901af047382f /localsettingspotatohut.py | |
parent | e72546d4b86106be3315ad276da6bbb4d162d999 (diff) | |
download | troggle-8563edd4a7a9961cd66644a04bc598e4bf0a29b1.tar.gz troggle-8563edd4a7a9961cd66644a04bc598e4bf0a29b1.tar.bz2 troggle-8563edd4a7a9961cd66644a04bc598e4bf0a29b1.zip |
Use REPOS_ROOT_PATH so there is just one place to change paths
Diffstat (limited to 'localsettingspotatohut.py')
-rw-r--r-- | localsettingspotatohut.py | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/localsettingspotatohut.py b/localsettingspotatohut.py index c657523..2676da9 100644 --- a/localsettingspotatohut.py +++ b/localsettingspotatohut.py @@ -1,9 +1,4 @@ import sys -sys.path.append("/home/expo/troggle") - -# This is an example file. Copy it to localsettings.py, set the -# password and _don't_ check that file back to the repo as it exposes -# your/our password to the world! DATABASES = { 'default': { @@ -22,36 +17,35 @@ sys.path.append(REPOS_ROOT_PATH + 'troggle') PUBLIC_SITE = True -SURVEX_DATA = '/home/expo/loser/' -TUNNEL_DATA = '/home/expo/tunneldata/' +SURVEX_DATA = REPOS_ROOT_PATH + 'loser/' +TUNNEL_DATA = REPOS_ROOT_PATH + 'tunneldata/' CAVERN = 'cavern' THREEDTOPOS = '3dtopos' -EXPOWEB = '/home/expo/expoweb/' -SURVEYS = '/home/expo/' -SURVEY_SCANS = '/home/expo/expoimages/' -FILES = '/home/expo/expoimages' - -EXPOWEB_URL = 'http://expo/' +EXPOWEB = REPOS_ROOT_PATH + 'expoweb/' +SURVEYS = REPOS_ROOT_PATH +SURVEY_SCANS = REPOS_ROOT_PATH + 'expoimages/' +FILES = REPOS_ROOT_PATH + 'expoimages' -SURVEYS_URL = 'http://expo/survey_scans/' PYTHON_PATH = '/home/expo/troggle/' -#URL_ROOT = "http://troggle.cavingexpedition.com/" -URL_ROOT = "http://expo.survex.com/" +URL_ROOT = "http://expo/" DIR_ROOT = ''#this should end in / if a value is given - +EXPOWEB_URL = 'http://expo/' +SURVEYS_URL = 'http://expo/survey_scans/' MEDIA_URL = '/' + DIR_ROOT + 'site_media/' -MEDIA_ROOT = '/home/expo/troggle/media/' -MEDIA_ADMIN_DIR = '/usr/lib/python2.4/site-packages/django/contrib/admin/media/' +MEDIA_ROOT = REPOS_ROOT_PATH + '/troggle/media/' +MEDIA_ADMIN_DIR = '/usr/lib/python2.7/site-packages/django/contrib/admin/media/' + +JSLIB_PATH = /usr/share/javascript/ TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/' TINY_MCE_MEDIA_URL = URL_ROOT + DIR_ROOT + 'tinymce_media/' TEMPLATE_DIRS = ( - "/home/expo/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. |