diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-02-28 15:46:19 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-02-28 15:46:19 +0000 |
commit | 8bd20f96006f160066b6ec64800e8b86b0a64190 (patch) | |
tree | 95cc57d84a4ad58aeed845f74a6a43f398c80739 /core/views/prospect.py | |
parent | 6d435ee473335f122799ac08347b7fe2433da80f (diff) | |
download | troggle-8bd20f96006f160066b6ec64800e8b86b0a64190.tar.gz troggle-8bd20f96006f160066b6ec64800e8b86b0a64190.tar.bz2 troggle-8bd20f96006f160066b6ec64800e8b86b0a64190.zip |
Prospecting guide disabled - 100s bad URLs
Diffstat (limited to 'core/views/prospect.py')
-rw-r--r-- | core/views/prospect.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/views/prospect.py b/core/views/prospect.py index 880c8d0..aaefc11 100644 --- a/core/views/prospect.py +++ b/core/views/prospect.py @@ -52,8 +52,22 @@ def prospecting(request): '''This produces the multipage 'prospecting guide' document, intended to be printed and carried into the field - in 1999. - All the formatting and selection clverness is in the template file. + All the formatting and selection cleverness is in the template file. + + This produces a vast number of bad 404 URLs as many URLs in the cave_data + XML files refer to other caves, assuming that they are in the same directory + as the prospecting guide. But since the introduction of the 1623/ level, this is + not true. e.g. 163 refers to 162 as href="../162.htm" which is valid in the cave + description page but not when navigating from the prospecting guide page. + + Since this vast number of broken links is getting in the way of finding real errors, the guide + has been disabled. ''' + message = f'This prospecting guide text report contains many broken URLs because of a major redesign\n' +\ + ' to put caves into 1623/ and 1624/ folders in 2017. It was mostly useless because recent QM info was not in it anyway.\n\n' +\ + 'It is disabled in the python code in "prospecting(request):" in troggle/core/views/prospect.py' + return render(request,'errors/disabled.html', {'message': message}) + areas = [] for key, name in AREANAMES: a = Area.objects.get(short_name = key) # assumes unique |