2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-27 01:31:57 +00:00

remove // in URLs

This commit is contained in:
Philip Sargent 2024-02-06 18:52:46 +00:00
parent 422d2324e8
commit a61751e1fb
4 changed files with 35 additions and 34 deletions

View File

@ -52,18 +52,17 @@ TEMPLATE_PATH = TROGGLE_PATH / "templates"
MEDIA_ROOT = TROGGLE_PATH / "media" MEDIA_ROOT = TROGGLE_PATH / "media"
JSLIB_ROOT = TROGGLE_PATH / "media" / "jslib" # used for CaveViewer JS utility JSLIB_ROOT = TROGGLE_PATH / "media" / "jslib" # used for CaveViewer JS utility
# FILES = Path('/mnt/d/expofiles/')
EXPOFILES = REPOS_ROOT_PATH / "expofiles" EXPOFILES = REPOS_ROOT_PATH / "expofiles"
SCANS_ROOT = EXPOFILES / "surveyscans" SCANS_ROOT = EXPOFILES / "surveyscans"
PHOTOS_ROOT = Path("/mnt/d/EXPO/PHOTOS") PHOTOS_ROOT = EXPOFILES / "photos"
PHOTOS_YEAR = "2023" PHOTOS_YEAR = "2023"
NOTABLECAVESHREFS = ["290", "291", "264", "258", "204", "359", "76", "107"] NOTABLECAVESHREFS = ["290", "291", "264", "258", "204", "359", "76", "107"]
PYTHON_PATH = REPOS_ROOT_PATH / "troggle" PYTHON_PATH = REPOS_ROOT_PATH / "troggle"
LOGFILE = PYTHON_PATH / "troggle.log" 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 # 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). # trailing slash if there is a path component (optional in other cases).
@ -86,17 +85,17 @@ JSLIB_URL = Path(URL_ROOT, "/javascript/") # used for CaveViewer JS utility
# --------------------- MEDIA redirections END --------------------- # --------------------- MEDIA redirections END ---------------------
PUBLIC_SITE = True PUBLIC_SITE = True
DEBUG = True # Always keep this True, even when on public server. Otherwise NO USEFUL ERROR MESSAGES ! 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 CACHEDPAGES = True # experimental page cache for a handful of page types
# executables: # executables:
CAVERN = "cavern" # for parsing .svx files and producing .3d files CAVERN = "cavern" # for parsing .svx files and producing .3d files
SURVEXPORT = "survexport" # for parsing .3d files and producing .pos files SURVEXPORT = "survexport" # for parsing .3d files and producing .pos files
DBSQLITE = { DBSQLITE = {
"default": { "default": {
"ENGINE": "django.db.backends.sqlite3", # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. "ENGINE": "django.db.backends.sqlite3", # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
"NAME": str(SQLITEDB), "NAME": "/home/philip/p11d5/troggle.sqlite",
# 'NAME' : ':memory:', # 'NAME' : ':memory:',
"USER": "expo", # Not used with sqlite3. "USER": "expo", # Not used with sqlite3.
"PASSWORD": "sekrit", # Not used with sqlite3. "PASSWORD": "sekrit", # Not used with sqlite3.
@ -134,7 +133,7 @@ TEMPLATES = [
"context_processors": [ "context_processors": [
# django.template.context_processors.csrf, # is always enabled and cannot be removed, sets csrf_token # 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 "django.contrib.auth.context_processors.auth", # knowledge of logged-on user & permissions
"core.context.troggle_context", # in core/troggle.py - only used in expedition.html "core.context.troggle_context", # in core/context.py - only used in expedition.html
"django.template.context_processors.debug", "django.template.context_processors.debug",
"django.template.context_processors.i18n", "django.template.context_processors.i18n",
"django.template.context_processors.media", # includes a variable MEDIA_URL "django.template.context_processors.media", # includes a variable MEDIA_URL
@ -168,7 +167,7 @@ EXPOWEB = REPOS_ROOT_PATH / "expoweb"
CAVEDESCRIPTIONS = EXPOWEB / "cave_data" CAVEDESCRIPTIONS = EXPOWEB / "cave_data"
ENTRANCEDESCRIPTIONS = EXPOWEB / "entrance_data" ENTRANCEDESCRIPTIONS = EXPOWEB / "entrance_data"
EXPOWEB_URL = "" # EXPOWEB_URL = "" # defunct, removed.
# SCANS_URL = '/survey_scans/' # defunct, removed. # SCANS_URL = '/survey_scans/' # defunct, removed.
sys.path.append(str(REPOS_ROOT_PATH)) sys.path.append(str(REPOS_ROOT_PATH))

View File

@ -1,2 +0,0 @@
/home/philip/p11d42/lib/python3.11/site-packages/django/conf/__init__.py:267: RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale.
warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)

View File

@ -1,23 +1,27 @@
#This requirements txt matches the libaries as of 2023-07-09 on expo.survex.com <Debian GNU/Linux 11 (bullseye)> asgiref==3.7.2
attrs==22.2.0
#Nb on the server asgiref==3.3.0, however this conflicts with the Django==3.2.12 requirement beautifulsoup4==4.12.2
asgiref==3.3.2 black==23.11.0
Django==3.2.12 bs4==0.0.1
docutils==0.16 click==8.1.3
packaging==20.9 colorama==0.4.6
Pillow==8.1.2 coverage==6.5.0
pytz==2021.1 Django==5.0
sqlparse==0.4.1 docutils==0.20
Unidecode==1.2.0 interrogate==1.5.0
beautifulsoup4==4.9.3 isort==5.11.4
mypy-extensions==0.4.3
packaging==23.2
pathspec==0.10.3
piexif==1.1.3 piexif==1.1.3
Pillow==10.1.0
#Not installed on expo.survex.com platformdirs==2.6.2
#black==23.3 py==1.11.0
#click==8.1.3 pytz==2022.6
#coverage==7.2 ruff==0.1.0
#isort==5.12.0 soupsieve==2.5
#mypy-extensions==1.0.0 sqlparse==0.4.0
#pathspec==0.11 tabulate==0.9.0
#platformdirs==3.8 toml==0.10.2
#ruff==0.0.245 typing_extensions==4.4.0
Unidecode==1.3.6

View File

@ -31,7 +31,7 @@
{% else %} {% else %}
<div class="toolbarlinks"> <div class="toolbarlinks">
{% endif %} {% endif %}
<a href="/1623/290/290">290 (FGH)</a> | <a href="/1623/290/290.html">290 (FGH)</a> |
<a href="/1626/359/359.html">359 (HC)</a> | <a href="/1626/359/359.html">359 (HC)</a> |
<a id="cavesLink" href="/caves">caves</a> | <a id="cavesLink" href="/caves">caves</a> |
<a id="qmsLink" href="{% url "caveQMs" "1623-290" %}">QMs</a> | <a id="qmsLink" href="{% url "caveQMs" "1623-290" %}">QMs</a> |