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.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index f9ff399..cdd0030 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -18,9 +18,6 @@ from troggle.core.utils import (
WriteAndCommitError,
current_expo,
get_editor,
- # get_cookie,
- # git_string,
- # get_git_string,
write_and_commit,
is_identified_user
)
@@ -273,6 +270,9 @@ def expowebpage(request, expowebpath, path):
def mediapage(request, subpath=None, doc_root=None):
"""This is for special prefix paths /photos/ /site_media/, /static/ etc.
as defined in urls.py . If given a directory, gives a failure page.
+
+ If running on the server, Apache intercepts these so this code is not used there,
+ but it is vital for the devserver.
"""
#print("mediapath", subpath)
if doc_root is not None:
@@ -448,10 +448,6 @@ def editexpopage(request, path):
if m:
filefound = True
preheader, headerargs, head, postheader, bodyargs, body, postbody = m.groups()
- # linksmatch = re.match(r'(.*)(<ul\s+id="links">.*)', body, re.DOTALL + re.IGNORECASE)
- # if linksmatch:
- # body, links = linksmatch.groups()
-
else:
return HttpResponse(
default_head