From 73ffb509f79a6f623ba9c82be17c907cbcdf7afb Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 6 Nov 2021 22:59:10 +0200 Subject: CaveView status is now documented --- core/views/caves.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/views/caves.py') diff --git a/core/views/caves.py b/core/views/caves.py index 97f06cc..5fb070d 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -219,9 +219,9 @@ def rendercave(request, cave, slug, cave_id=''): # NOTE the template itself loads the 3d file using javascript before it loads anything else. # Django cannot see what this javascript is doing, so we need to ensure that the 3d file exists first. - # run this just for the side-effect of generating the 3d file? Nope, crashes. - # TO DO - restructure this so that the regeneration is callable from here. - #discard_response = cave3d(request, cave_id=cave_id) + # So only do this render if a valid .3d file exists. TO BE DONE + # see design docum in troggle/templates/cave.html + # see rendercave() in troggle/core/views/caves.py templatefile = 'cave.html' if request.user.is_authenticated: editable = True -- cgit v1.2.3