forked from expo/troggle
remove unused page
This commit is contained in:
parent
955fe9661a
commit
4a7c14f8dc
@ -341,19 +341,6 @@ def cavepage(request, karea, subpath):
|
|||||||
# anything else is a new problem. Add in specific error messages here as we discover new types of error
|
# anything else is a new problem. Add in specific error messages here as we discover new types of error
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
def caveEntrance(request, slug):
|
|
||||||
try:
|
|
||||||
cave = Cave.objects.get(caveslug__slug=slug)
|
|
||||||
except:
|
|
||||||
return render(request, "errors/badslug.html", {"badslug": f"{slug} - from caveEntrance()"})
|
|
||||||
|
|
||||||
if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated:
|
|
||||||
return render(request, "nonpublic.html", {"instance": cave})
|
|
||||||
else:
|
|
||||||
return render(request, "cave_entrances.html", {"cave": cave})
|
|
||||||
|
|
||||||
|
|
||||||
@login_required_if_public
|
@login_required_if_public
|
||||||
def edit_cave(request, path="", slug=None):
|
def edit_cave(request, path="", slug=None):
|
||||||
"""This is the form that edits all the cave data and writes out an XML file in the :expoweb: repo folder
|
"""This is the form that edits all the cave data and writes out an XML file in the :expoweb: repo folder
|
||||||
|
6
urls.py
6
urls.py
@ -6,7 +6,7 @@ from django.conf.urls.static import static
|
|||||||
|
|
||||||
from troggle.core.views import statistics, survex
|
from troggle.core.views import statistics, survex
|
||||||
from troggle.core.views.auth import expologin, expologout
|
from troggle.core.views.auth import expologin, expologout
|
||||||
from troggle.core.views.caves import (cave3d, caveEntrance, caveindex, entranceindex,
|
from troggle.core.views.caves import (cave3d, caveindex, entranceindex,
|
||||||
cavepage, caveQMs, edit_cave, cave_debug,
|
cavepage, caveQMs, edit_cave, cave_debug,
|
||||||
edit_entrance, get_entrances, qm, expo_kml, expo_kmz)
|
edit_entrance, get_entrances, qm, expo_kml, expo_kmz)
|
||||||
from troggle.core.views.drawings import dwgallfiles, dwgfilesingle
|
from troggle.core.views.drawings import dwgallfiles, dwgfilesingle
|
||||||
@ -162,10 +162,6 @@ trogglepatterns = [
|
|||||||
# Archaic, kept. This /expo/ prefix only works for expoweb HTML pages not troggle pages
|
# Archaic, kept. This /expo/ prefix only works for expoweb HTML pages not troggle pages
|
||||||
path('expo/<path:path>', expopage, name="expopage"),
|
path('expo/<path:path>', expopage, name="expopage"),
|
||||||
|
|
||||||
# Entrances
|
|
||||||
re_path(r'^cave/entrance/([^/]+)/?$', caveEntrance), # lists all entrances !!!BAD, local links fail
|
|
||||||
|
|
||||||
|
|
||||||
# System admin and monitoring
|
# System admin and monitoring
|
||||||
path('statistics', statistics.stats, name="stats"),
|
path('statistics', statistics.stats, name="stats"),
|
||||||
path('stats', statistics.stats, name="stats"),
|
path('stats', statistics.stats, name="stats"),
|
||||||
|
Loading…
Reference in New Issue
Block a user