2019-02-26 19:19:01 +00:00
|
|
|
import sys
|
2019-07-02 17:52:40 +01:00
|
|
|
# This is the local settings for use with the docker compose dev setup. It is imported automatically
|
2019-02-26 19:19:01 +00:00
|
|
|
|
|
|
|
DATABASES = {
|
2020-02-21 14:25:13 +00:00
|
|
|
'default': {
|
2019-02-26 19:19:01 +00:00
|
|
|
'ENGINE': 'django.db.backends.mysql', # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
|
|
|
'NAME' : 'troggle', # Or path to database file if using sqlite3.
|
|
|
|
'USER' : 'troggleuser', # Not used with sqlite3.
|
|
|
|
'PASSWORD' : 'expo123', # Not used with sqlite3.
|
|
|
|
'HOST' : 'expo-mysql', # Set to empty string for localhost. Not used with sqlite3.
|
|
|
|
'PORT' : '', # Set to empty string for default. Not used with sqlite3.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-21 14:25:13 +00:00
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
|
2019-02-26 19:19:01 +00:00
|
|
|
EXPOUSER = 'expo'
|
|
|
|
EXPOUSERPASS = 'somepasshere'
|
|
|
|
EXPOUSER_EMAIL = 'wookey@wookware.org'
|
|
|
|
|
|
|
|
REPOS_ROOT_PATH = '/expo/'
|
|
|
|
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 + 'expofiles/'
|
|
|
|
FILES = REPOS_ROOT_PATH + 'expofiles'
|
|
|
|
|
|
|
|
CACHEDIR = REPOS_ROOT_PATH + 'expowebcache/'
|
|
|
|
THREEDCACHEDIR = CACHEDIR + '3d/'
|
|
|
|
THUMBNAILCACHE = CACHEDIR + 'thumbs'
|
|
|
|
|
|
|
|
PYTHON_PATH = REPOS_ROOT_PATH + 'troggle/'
|
|
|
|
|
|
|
|
URL_ROOT = 'http://127.0.0.1:8000/'
|
|
|
|
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.7/site-packages/django/contrib/admin/media/'
|
|
|
|
|
2019-07-10 12:32:04 +01:00
|
|
|
STATIC_URL = "/static/"
|
|
|
|
STATIC_ROOT = "/expo/static"
|
2019-02-26 19:19:01 +00:00
|
|
|
|
|
|
|
JSLIB_URL = URL_ROOT + 'javascript/'
|
|
|
|
|
2019-07-10 12:32:04 +01:00
|
|
|
TINY_MCE_MEDIA_ROOT = STATIC_ROOT + '/tiny_mce/'
|
|
|
|
TINY_MCE_MEDIA_URL = STATIC_ROOT + '/tiny_mce/'
|
2019-02-26 19:19:01 +00:00
|
|
|
|
|
|
|
LOGFILE = PYTHON_PATH + 'troggle_log.txt'
|