diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-12-20 21:24:46 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-12-20 21:24:46 +0000 |
commit | 90ecdda407d6e8a51bb5587783d8406718fab0ec (patch) | |
tree | af3b5e24b97b2338ea11441f47cd0decf517db44 /_deploy/wsl/localsettingsWSL.py | |
parent | 1b6333fdefe9331ea4489248de51ce55552c732c (diff) | |
download | troggle-90ecdda407d6e8a51bb5587783d8406718fab0ec.tar.gz troggle-90ecdda407d6e8a51bb5587783d8406718fab0ec.tar.bz2 troggle-90ecdda407d6e8a51bb5587783d8406718fab0ec.zip |
debugging install scripts on a new 24.04 machine
Diffstat (limited to '_deploy/wsl/localsettingsWSL.py')
-rw-r--r-- | _deploy/wsl/localsettingsWSL.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/_deploy/wsl/localsettingsWSL.py b/_deploy/wsl/localsettingsWSL.py index 512ad47..b4458bf 100644 --- a/_deploy/wsl/localsettingsWSL.py +++ b/_deploy/wsl/localsettingsWSL.py @@ -52,17 +52,18 @@ TEMPLATE_PATH = TROGGLE_PATH / "templates" MEDIA_ROOT = TROGGLE_PATH / "media" JSLIB_ROOT = TROGGLE_PATH / "media" / "jslib" # used for CaveViewer JS utility -# FILES = Path('/mnt/d/expofiles/') EXPOFILES = REPOS_ROOT_PATH / "expofiles" SCANS_ROOT = EXPOFILES / "surveyscans" PHOTOS_ROOT = EXPOFILES / "photos" -PHOTOS_YEAR = "2023" -NOTABLECAVESHREFS = ["290", "291", "264", "258", "204", "359", "76", "107"] +PHOTOS_YEAR = "2024" +# NOTABLECAVESHREFS = ["290", "291", "264", "258", "204", "359"] # moved to settings.py PYTHON_PATH = REPOS_ROOT_PATH / "troggle" LOGFILE = PYTHON_PATH / "troggle.log" +SQLITEDB = PYTHON_PATH / "troggle.sqlite" +KMZ_ICONS_PATH = PYTHON_PATH / "kmz_icons" # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). @@ -87,15 +88,12 @@ JSLIB_URL = Path(URL_ROOT, "/javascript/") # used for CaveViewer JS utility PUBLIC_SITE = True DEBUG = True # Always keep this True, even when on public server. Otherwise NO USEFUL ERROR MESSAGES ! CACHEDPAGES = True # experimental page cache for a handful of page types - -# executables: -CAVERN = "cavern" # for parsing .svx files and producing .3d files -SURVEXPORT = "survexport" # for parsing .3d files and producing .pos files +DEVSERVER = True # running on WSL we are always a dev machine DBSQLITE = { "default": { "ENGINE": "django.db.backends.sqlite3", # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - "NAME": "/home/philip/p12d5/troggle.sqlite", + "NAME": str(SQLITEDB), # 'NAME' : ':memory:', "USER": "expo", # Not used with sqlite3. "PASSWORD": "sekrit", # Not used with sqlite3. @@ -133,7 +131,7 @@ TEMPLATES = [ "context_processors": [ # django.template.context_processors.csrf, # is always enabled and cannot be removed, sets csrf_token "django.contrib.auth.context_processors.auth", # knowledge of logged-on user & permissions - "core.context.troggle_context", # in core/context.py - only used in expedition.html + "core.context.troggle_context", # in core/troggle.py - only used in expedition.html "django.template.context_processors.debug", "django.template.context_processors.i18n", "django.template.context_processors.media", # includes a variable MEDIA_URL @@ -167,7 +165,7 @@ EXPOWEB = REPOS_ROOT_PATH / "expoweb" CAVEDESCRIPTIONS = EXPOWEB / "cave_data" ENTRANCEDESCRIPTIONS = EXPOWEB / "entrance_data" -# EXPOWEB_URL = "" # defunct, removed. +EXPOWEB_URL = "" # SCANS_URL = '/survey_scans/' # defunct, removed. sys.path.append(str(REPOS_ROOT_PATH)) |