2014-07-23 09:11:17 +01:00
|
|
|
import sys
|
|
|
|
|
2015-06-24 04:41:50 +01:00
|
|
|
# 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!
|
|
|
|
|
2014-07-23 09:11:17 +01:00
|
|
|
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.
|
2015-06-24 04:41:50 +01:00
|
|
|
'PASSWORD': 'wibble', # Not used with sqlite3.
|
2014-07-23 09:11:17 +01:00
|
|
|
'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/'
|
|
|
|
sys.path.append(REPOS_ROOT_PATH)
|
|
|
|
sys.path.append(REPOS_ROOT_PATH + 'troggle')
|
|
|
|
|
|
|
|
PUBLIC_SITE = True
|
2015-06-24 04:41:50 +01:00
|
|
|
FIX_PERMISSIONS = ["sudo", "/usr/local/bin/fix_permissions"]
|
2014-07-23 09:11:17 +01:00
|
|
|
|
2014-09-11 06:33:34 +01:00
|
|
|
SURVEX_DATA = REPOS_ROOT_PATH + 'loser/'
|
|
|
|
TUNNEL_DATA = REPOS_ROOT_PATH + 'tunneldata/'
|
2014-07-23 09:11:17 +01:00
|
|
|
|
|
|
|
CAVERN = 'cavern'
|
|
|
|
THREEDTOPOS = '3dtopos'
|
2014-09-11 06:33:34 +01:00
|
|
|
EXPOWEB = REPOS_ROOT_PATH + 'expoweb/'
|
|
|
|
SURVEYS = REPOS_ROOT_PATH
|
|
|
|
SURVEY_SCANS = REPOS_ROOT_PATH + 'expoimages/'
|
|
|
|
FILES = REPOS_ROOT_PATH + 'expoimages'
|
2014-07-23 09:11:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
PYTHON_PATH = '/home/expo/troggle/'
|
|
|
|
|
2014-09-11 06:33:34 +01:00
|
|
|
URL_ROOT = "http://expo/"
|
2014-07-23 09:11:17 +01:00
|
|
|
DIR_ROOT = ''#this should end in / if a value is given
|
2014-09-11 06:33:34 +01:00
|
|
|
EXPOWEB_URL = 'http://expo/'
|
|
|
|
SURVEYS_URL = 'http://expo/survey_scans/'
|
2014-07-23 09:10:31 +01:00
|
|
|
MEDIA_URL = '/' + DIR_ROOT + 'site_media/'
|
2014-07-23 09:11:17 +01:00
|
|
|
|
2014-09-11 06:33:34 +01:00
|
|
|
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/
|
2014-07-23 09:11:17 +01:00
|
|
|
|
|
|
|
TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/'
|
|
|
|
TINY_MCE_MEDIA_URL = URL_ROOT + DIR_ROOT + 'tinymce_media/'
|
|
|
|
|
|
|
|
TEMPLATE_DIRS = (
|
2014-09-11 06:33:34 +01:00
|
|
|
PYTHON_PATH + "templates",
|
2014-07-23 09:11:17 +01:00
|
|
|
# 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/troggle/troggle_log.txt'
|
|
|
|
|
|
|
|
FEINCMS_ADMIN_MEDIA='/site_media/feincms/'
|
|
|
|
|
|
|
|
EMAIL_HOST = "smtp.gmail.com"
|
|
|
|
|
|
|
|
EMAIL_HOST_USER = "cuccexpo@gmail.com"
|
|
|
|
|
|
|
|
EMAIL_HOST_PASSWORD = "khvtffkhvtff"
|
|
|
|
|
|
|
|
EMAIL_PORT=587
|
|
|
|
|
|
|
|
EMAIL_USE_TLS = True
|