summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index b62a3db..07cb9c2 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -18,8 +18,8 @@ from troggle.core.models_caves import Cave
import troggle.core.views.caves
import troggle.settings as settings
-'''Formerly a separate package 'flatpages' written by Martin Green 2011.
-This was NOT django.contrib.flatpages which stores HTML in the database, so the name was chnaged to expopages.
+'''Formerly a separate package called 'flatpages' written by Martin Green 2011.
+This was NOT django.contrib.flatpages which stores HTML in the database, so the name was changed to expopages.
Then it was incorporated into troggle directly, rather than being an unnecessary external package.
'''
@@ -92,7 +92,7 @@ def expowebpage(request, expowebpath, path):
'body': body, 'homepage': (path == "index.htm"), 'has_menu': has_menu})
def mediapage(request, subpath=None, doc_root=None):
- '''This is for special prefixe paths /photos/ /site_media/, /static/ etc.
+ '''This is for special prefix paths /photos/ /site_media/, /static/ etc.
as defined in urls.py . If given a directory, gives a failure page.
'''
# print(" - XXXXX_ROOT: {} ...{}".format(doc_root, subpath))
@@ -108,6 +108,7 @@ def mediapage(request, subpath=None, doc_root=None):
return render(request, 'pagenotfound.html', {'path': subpath})
+
def expopage(request, path):
'''Either renders an HTML page from expoweb with all the menus,
or serves an unadorned binary file with mime type