forked from expo/troggle
Deleted archaisms and new comments
This commit is contained in:
@@ -85,7 +85,7 @@ def flatpage(request, path):
|
||||
if m:
|
||||
preheader, headerattrs, head, postheader, bodyattrs, body, postbody = m.groups()
|
||||
else:
|
||||
return HttpResponse(html + "Page could not be split into header and body: parsing failed in flatpages.views.py")
|
||||
return HttpResponse(html + "HTML Parsing failure: Page could not be split into header and body: failed in flatpages.views.py")
|
||||
m = re.search(rb"<title>(.*)</title>", head, re.DOTALL + re.IGNORECASE)
|
||||
if m:
|
||||
title, = m.groups()
|
||||
|
||||
Reference in New Issue
Block a user