diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-03-26 02:01:29 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-03-26 02:01:29 +0000 |
commit | 3487c22da3b2da03a7d6a0814ea87ffb0a32229f (patch) | |
tree | 1ca870f186ddfa9083e13190c4fd1d6359b2de14 /localsettingsWSL.py | |
parent | 65c3cb31d762bf7289b948525fef78f4f12e21d2 (diff) | |
download | troggle-3487c22da3b2da03a7d6a0814ea87ffb0a32229f.tar.gz troggle-3487c22da3b2da03a7d6a0814ea87ffb0a32229f.tar.bz2 troggle-3487c22da3b2da03a7d6a0814ea87ffb0a32229f.zip |
Survex 1624, 1626, 1627 now displayed robustly
Diffstat (limited to 'localsettingsWSL.py')
-rw-r--r-- | localsettingsWSL.py | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/localsettingsWSL.py b/localsettingsWSL.py index cae8080..d9b7d47 100644 --- a/localsettingsWSL.py +++ b/localsettingsWSL.py @@ -62,7 +62,7 @@ print(MEDIA_ROOT) # --------------------- MEDIA redirections END --------------------- PUBLIC_SITE = True -DEBUG = True # Always keep this, even when on public server. Otherwise NO ERROR MESSAGES ! +DEBUG = True # Always keep this True, even when on public server. Otherwise NO USEFUL ERROR MESSAGES ! # executables: CAVERN = 'cavern' @@ -79,8 +79,8 @@ DATABASES = { 'PORT' : '', # Set to empty string for default. Not used with sqlite3. } } -# add in 290, 291, 358 when they don't make it crash horribly -NOTABLECAVESHREFS = [ "264", "258", "204", "76", "107"] +# add in 358 when they don't make it crash horribly +NOTABLECAVESHREFS = [ "290", "291", "359", "264", "258", "204", "76", "107"] PYTHON_PATH = REPOS_ROOT_PATH / 'troggle' sys.path.append(os.fspath(REPOS_ROOT_PATH)) @@ -110,7 +110,7 @@ TEMPLATES = [ 'loaders': [ 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', - # insert your TEMPLATE_LOADERS here + # insert your own TEMPLATE_LOADERS here ] }, }, @@ -130,7 +130,7 @@ SURVEX_DATA = REPOS_ROOT_PATH / "loser" TUNNEL_DATA = REPOS_ROOT_PATH / "drawings" THREEDCACHEDIR = REPOS_ROOT_PATH / 'expowebcache' / '3d' -EXPOWEB = REPOS_ROOT_PATH / "expoweb" +EXPOWEB = REPOS_ROOT_PATH / "expoweb" SURVEYS = REPOS_ROOT_PATH SURVEY_SCANS = '/mnt/f/expofiles/surveyscans/' FILES = '/mnt/f/expofiles/' @@ -140,5 +140,15 @@ EXPOWEB_URL = '' SURVEYS_URL = '/survey_scans/' EXPOFILES ='/mnt/f/expofiles/' - +# Sanitise these to be strings as all other code is expecting strings +# and we have not made the chnage to pathlib Path type in the other localsettings-* variants yet. +CAVEDESCRIPTIONS = os.fspath(CAVEDESCRIPTIONS) +ENTRANCEDESCRIPTIONS = os.fspath(ENTRANCEDESCRIPTIONS) +LOGFILE = os.fspath(LOGFILE) +SURVEYS = os.fspath(SURVEYS) +EXPOWEB = os.fspath(EXPOWEB) +THREEDCACHEDIR = os.fspath(THREEDCACHEDIR) +TUNNEL_DATA = os.fspath(TUNNEL_DATA) +SURVEX_DATA = os.fspath(SURVEX_DATA) +REPOS_ROOT_PATH = os.fspath(REPOS_ROOT_PATH) print(" + finished importing troggle/localsettings.py") |