summaryrefslogtreecommitdiffstats
path: root/localsettingsubuntu.py
blob: 5a1f944533703ebf0e4c7e89592f72e4f8629b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import sys
# link localsettings to this file for use on expo computer in austria

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/'

sys.path.append(REPOS_ROOT_PATH)
sys.path.append(REPOS_ROOT_PATH + 'troggle')

PUBLIC_SITE = False

SURVEX_DATA = REPOS_ROOT_PATH + 'loser/'
TUNNEL_DATA = REPOS_ROOT_PATH + 'tunneldata/'

CAVERN = 'cavern'
THREEDTOPOS = '3dtopos'
EXPOWEB = REPOS_ROOT_PATH + 'expoweb/'
SURVEYS = REPOS_ROOT_PATH
SURVEY_SCANS = REPOS_ROOT_PATH + 'expoimages/'
FILES = REPOS_ROOT_PATH + 'expoimages'


PYTHON_PATH = REPOS_ROOT_PATH + 'hg/troggle/'

#URL_ROOT = 'http://127.0.0.1:8000'
URL_ROOT = "http://expoweb/"
DIR_ROOT = ''#this should end in / if a value is given

EXPOWEB_URL = '/'
SURVEYS_URL = '/survey_scans/'

MEDIA_URL = URL_ROOT + DIR_ROOT + '/site_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 = (
    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 = PYTHON_PATH + 'parsing_log.txt'