mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-01-19 17:32:31 +00:00
test
This commit is contained in:
parent
26e952154e
commit
945373df67
@ -123,7 +123,8 @@ def expofilesdir(request, dirpath, filepath):
|
|||||||
def expowebpage(request, expowebpath, path):
|
def expowebpage(request, expowebpath, path):
|
||||||
'''Adds menus and serves an HTML page
|
'''Adds menus and serves an HTML page
|
||||||
'''
|
'''
|
||||||
if not os.path.is_file(os.path.normpath(expowebpath / path).encode(sysdefaultencoding)):
|
p = path.encode(sysdefaultencoding)
|
||||||
|
if not Path(expowebpath / p).is_file():
|
||||||
# Should not get here if the path has suffix "_edit"
|
# Should not get here if the path has suffix "_edit"
|
||||||
print(f' - 404 error in expowebpage() {path}')
|
print(f' - 404 error in expowebpage() {path}')
|
||||||
return render(request, 'pagenotfound.html', {'path': path}, status="404")
|
return render(request, 'pagenotfound.html', {'path': path}, status="404")
|
||||||
|
Loading…
Reference in New Issue
Block a user