diff options
Diffstat (limited to '_deploy/old')
-rw-r--r-- | _deploy/old/localsettingsdocker.py | 65 | ||||
-rw-r--r-- | _deploy/old/localsettingspotatohut.py | 78 | ||||
-rw-r--r-- | _deploy/old/localsettingsserver.py | 115 | ||||
-rw-r--r-- | _deploy/old/localsettingsubuntu.py | 69 |
4 files changed, 0 insertions, 327 deletions
diff --git a/_deploy/old/localsettingsdocker.py b/_deploy/old/localsettingsdocker.py deleted file mode 100644 index 76cca3d..0000000 --- a/_deploy/old/localsettingsdocker.py +++ /dev/null @@ -1,65 +0,0 @@ -import sys -# This is the local settings for use with the docker compose dev setup. It is imported automatically - -DATABASES = { - 'default': { - '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. - } -} - -EXPOUSER = 'expo' -EXPOUSERPASS = "nnn:gggggg" -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/' -DRAWINGS_DATA = REPOS_ROOT_PATH + 'drawings/' - -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/' - -STATIC_URL = "/static/" -STATIC_ROOT = "/expo/static" - -JSLIB_URL = URL_ROOT + 'javascript/' - -TINY_MCE_MEDIA_ROOT = STATIC_ROOT + '/tiny_mce/' -TINY_MCE_MEDIA_URL = STATIC_ROOT + '/tiny_mce/' - -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' diff --git a/_deploy/old/localsettingspotatohut.py b/_deploy/old/localsettingspotatohut.py deleted file mode 100644 index 2e5c08b..0000000 --- a/_deploy/old/localsettingspotatohut.py +++ /dev/null @@ -1,78 +0,0 @@ -import sys - -# 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! - -# This will ALL NEED TO BE CHANGED to match localsettingsWSL / python3 / Django v1.18.29 - - -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': 'notarealpassword', # 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/' -sys.path.append(REPOS_ROOT_PATH) -sys.path.append(REPOS_ROOT_PATH + 'troggle') - -PUBLIC_SITE = True -FIX_PERMISSIONS = ["sudo", "/usr/local/bin/fix_permissions"] - -SURVEX_DATA = REPOS_ROOT_PATH + 'loser/' -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 + 'expoimages/' -FILES = REPOS_ROOT_PATH + 'expoimages' - - -PYTHON_PATH = '/home/expo/troggle/' - -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/' - -STATIC_URL = URL_ROOT -STATIC_ROOT = DIR_ROOT - -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 = ( - 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 = '/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 = "insert-real-email-password-here" - -EMAIL_PORT=587 - -EMAIL_USE_TLS = True diff --git a/_deploy/old/localsettingsserver.py b/_deploy/old/localsettingsserver.py deleted file mode 100644 index 79cd6ef..0000000 --- a/_deploy/old/localsettingsserver.py +++ /dev/null @@ -1,115 +0,0 @@ -import sys -import os -import urllib.parse -"""Settings for a troggle installation which may vary among different -installations: for development or deployment, in a docker image or -python virtual environment (venv), on ubuntu, debian or in Windows -System for Linux (WSL), on the main server or in the potato hut, -using SQLite or mariaDB. - -It sets the directory locations for the major parts of the system so -that e.g. expofiles can be on a different filesystem. - -This file is included at the end of the main troggle/settings.py file so that -it overwrites defaults in that file. -""" - -print(" * importing troggle/localsettings.py") - -# DO NOT check this file into the git repo - it contains real passwords. - -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. - 'PASSWORD' : 'not a real password', # 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/' -sys.path.append(REPOS_ROOT_PATH) -sys.path.append(REPOS_ROOT_PATH + 'troggle') -# Define the path to the django app (troggle in this case) -PYTHON_PATH = REPOS_ROOT_PATH + 'troggle/' - -TEMPLATES = [ - { - 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [ - PYTHON_PATH + "templates" - ], - 'OPTIONS': { - 'debug': 'DEBUG', - 'context_processors': [ - 'django.contrib.auth.context_processors.auth', - 'core.context.troggle_context', - 'django.template.context_processors.debug', - 'django.template.context_processors.i18n', - 'django.template.context_processors.media', - 'django.template.context_processors.static', - 'django.template.context_processors.tz', - 'django.contrib.messages.context_processors.messages', - ], - 'loaders': [ - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', - # insert your TEMPLATE_LOADERS here - ] - }, - }, -] - -PUBLIC_SITE = True - -# This should be False for normal running -DEBUG = True - -SURVEX_DATA = REPOS_ROOT_PATH + 'loser/' -DRAWINGS_DATA = REPOS_ROOT_PATH + 'drawings/' - -CAVERN = 'cavern' -THREEDTOPOS = 'survexport' -EXPOWEB = REPOS_ROOT_PATH + 'expoweb/' -SURVEYS = REPOS_ROOT_PATH -SURVEY_SCANS = REPOS_ROOT_PATH + 'expofiles/surveyscans/' -FILES = REPOS_ROOT_PATH + 'expofiles' -CAVEDESCRIPTIONS = os.path.join(EXPOWEB, "cave_data") -ENTRANCEDESCRIPTIONS = os.path.join(EXPOWEB, "entrance_data") - -CACHEDIR = REPOS_ROOT_PATH + 'expowebcache/' -THREEDCACHEDIR = CACHEDIR + '3d/' -THUMBNAILCACHE = CACHEDIR + 'thumbs' - -PYTHON_PATH = REPOS_ROOT_PATH + 'troggle/' - -URL_ROOT = 'http://expo.survex.com/' -DIR_ROOT = ''#this should end in / if a value is given -EXPOWEB_URL = '/' -SURVEYS_URL = '/survey_scans/' -EXPOFILES = urllib.parse.urljoin(REPOS_ROOT_PATH, 'expofiles/') -PHOTOS_URL = urllib.parse.urljoin(URL_ROOT, '/photos/') - -# MEDIA_URL is used by urls.py in a regex. See urls.py & core/views/surveys.py -MEDIA_URL = '/site_media/' - -MEDIA_ROOT = REPOS_ROOT_PATH + '/troggle/media/' - -STATIC_URL = urllib.parse.urljoin(URL_ROOT , '/static/') # used by Django admin pages. Do not delete. -JSLIB_URL = urllib.parse.urljoin(URL_ROOT , '/javascript/') # always fails, try to revive it ? - -#TINY_MCE_MEDIA_ROOT = STATIC_ROOT + '/tiny_mce/' # not needed while TinyMCE not installed -#TINY_MCE_MEDIA_URL = STATIC_URL + '/tiny_mce/' # not needed while TinyMCE not installed - -LOGFILE = '/var/log/troggle/troggle.log' -IMPORTLOGFILE = '/var/log/troggle/import.log' - -# add in 290, 291, 358 when they don't make it crash horribly -NOTABLECAVESHREFS = [ "264", "258", "204", "76", "107"] diff --git a/_deploy/old/localsettingsubuntu.py b/_deploy/old/localsettingsubuntu.py deleted file mode 100644 index 74ebd3c..0000000 --- a/_deploy/old/localsettingsubuntu.py +++ /dev/null @@ -1,69 +0,0 @@ -import sys -# link localsettings to this file for use on expo computer in austria - -# This will ALL NEED TO BE CHANGED to match localsettingsWSL / python3 / Django v1.18.29 - -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. - '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/' - -sys.path.append(REPOS_ROOT_PATH) -sys.path.append(REPOS_ROOT_PATH + 'troggle') - -PUBLIC_SITE = False - -SURVEX_DATA = REPOS_ROOT_PATH + 'loser/' -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' - -EXPOWEB_URL = '/' -SURVEYS_URL = '/survey_scans/' - -PYTHON_PATH = REPOS_ROOT_PATH + 'troggle/' - -#URL_ROOT = 'http://127.0.0.1:8000' -URL_ROOT = "http://expoweb/" -DIR_ROOT = ''#this should end in / if a value is given - - - -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 - -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' |