mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 06:57:09 +00:00
Fix up parser paths so everything is found
This commit is contained in:
@@ -50,7 +50,8 @@ def flatpage(request, path):
|
||||
return render_with_context(request, 'pagenotfound.html', {'path': path})
|
||||
else:
|
||||
try:
|
||||
o = open(os.path.normpath(settings.EXPOWEB + path), "rb")
|
||||
filetobeopened = os.path.normpath(settings.EXPOWEB + path)
|
||||
o = open(filetobeopened, "rb")
|
||||
except IOError:
|
||||
return render_with_context(request, 'pagenotfound.html', {'path': path})
|
||||
if path.endswith(".htm") or path.endswith(".html"):
|
||||
|
||||
Reference in New Issue
Block a user