From e95cff58180ec4f251dafeedb437dd48a94cbd9e Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 22 Feb 2025 10:11:24 +0200 Subject: produce .url file in same folder as orig. photo in expofiles --- core/views/expo.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'core/views/expo.py') 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'(.*)(.*)', body, re.DOTALL + re.IGNORECASE) - # if linksmatch: - # body, links = linksmatch.groups() - else: return HttpResponse( default_head -- cgit v1.2.3