diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-03-31 23:19:48 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-03-31 23:19:48 +0100 |
commit | 269020391240f15d5d5997f88b51f401abf37cb1 (patch) | |
tree | 75cf2d8802bf0d0abe583e25f6b012d77d484f8c /localsettings.py | |
parent | 9d8a44696bfcd045d64acb7d6eb0038a721cd8f3 (diff) | |
download | troggle-269020391240f15d5d5997f88b51f401abf37cb1.tar.gz troggle-269020391240f15d5d5997f88b51f401abf37cb1.tar.bz2 troggle-269020391240f15d5d5997f88b51f401abf37cb1.zip |
new method for /site-media/, /static/, /photos/
Diffstat (limited to 'localsettings.py')
-rw-r--r-- | localsettings.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/localsettings.py b/localsettings.py index 2e79d50..b0853e7 100644 --- a/localsettings.py +++ b/localsettings.py @@ -41,6 +41,11 @@ TROGGLE_PATH = Path(__file__).parent TEMPLATE_PATH = os.fspath(TROGGLE_PATH / 'templates') MEDIA_ROOT = os.fspath(TROGGLE_PATH / 'media') +FILES = Path('/mnt/f/expofiles/') +EXPOFILES = Path('/mnt/f/expofiles/') +SURVEY_SCANS = EXPOFILES / 'surveyscans' +PHOTOS_ROOT = EXPOFILES / 'photos' + # 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). MEDIA_URL = '/site-media/' @@ -129,21 +134,16 @@ EMAIL_PORT=587 EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = 'django-test@klebos.net' - - SURVEX_DATA = REPOS_ROOT_PATH / "loser" TUNNEL_DATA = REPOS_ROOT_PATH / "drawings" THREEDCACHEDIR = REPOS_ROOT_PATH / 'expowebcache' / '3d' EXPOWEB = REPOS_ROOT_PATH / "expoweb" SURVEYS = REPOS_ROOT_PATH -SURVEY_SCANS = '/mnt/f/expofiles/surveyscans/' -FILES = '/mnt/f/expofiles/' CAVEDESCRIPTIONS = EXPOWEB / "cave_data" ENTRANCEDESCRIPTIONS = EXPOWEB / "entrance_data" 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 change to pathlib Path type in the other localsettings-* variants yet. |