2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-12-24 01:12:27 +00:00
troggle/_deploy/ubuntu-dev/localsettingsubuntu.py

73 lines
2.2 KiB
Python
Raw Normal View History

import sys
2023-01-19 20:47:26 +00:00
# link localsettings to this file for use on expo computer in austria
2009-06-09 19:52:32 +01:00
2021-05-12 22:00:39 +01:00
# This will ALL NEED TO BE CHANGED to match localsettingsWSL / python3 / Django v2.2
# This WILL NOT WORK as it is for an earlier version of Django
# consult localsettingsWSL for updates required.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # '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' : 'sekrit', # 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.
}
}
EXPOUSER = 'expo'
EXPOUSERPASS = "nnn:gggggg"
EXPOUSER_EMAIL = 'wookey@wookware.org'
REPOS_ROOT_PATH = '/home/expo/expofiles/'
2009-06-09 19:52:32 +01:00
sys.path.append(REPOS_ROOT_PATH)
sys.path.append(REPOS_ROOT_PATH + 'troggle')
2011-05-02 00:53:44 +01:00
PUBLIC_SITE = False
SURVEX_DATA = REPOS_ROOT_PATH + 'loser/'
2021-04-26 18:45:21 +01:00
DRAWINGS_DATA = REPOS_ROOT_PATH + 'drawings/'
THREEDCACHEDIR = REPOS_ROOT_PATH + 'expowebcache/3d/'
CAVERN = 'cavern'
THREEDTOPOS = '3dtopos'
EXPOWEB = REPOS_ROOT_PATH + 'expoweb/'
SURVEYS = REPOS_ROOT_PATH
SURVEY_SCANS = REPOS_ROOT_PATH + 'expofiles/'
FILES = REPOS_ROOT_PATH + 'expofiles'
2009-06-09 19:52:32 +01:00
EXPOWEB_URL = '/'
SURVEYS_URL = '/survey_scans/'
2009-06-09 19:52:32 +01:00
PYTHON_PATH = REPOS_ROOT_PATH + 'troggle/'
2009-06-09 19:52:32 +01:00
#URL_ROOT = 'http://127.0.0.1:8000'
URL_ROOT = "http://expoweb/"
DIR_ROOT = ''#this should end in / if a value is given
2009-06-09 19:52:32 +01:00
2009-06-09 19:52:32 +01:00
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/'
STATIC_URL = URL_ROOT
STATIC_ROOT = DIR_ROOT
2015-06-27 13:01:15 +01:00
JSLIB_URL = URL_ROOT + 'javascript/'
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 + 'troggle_log.txt'