mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Redirect interactive devel docs to static instead of giving error
Per suggestion from Josh Kupershmidt
This commit is contained in:
@ -23,7 +23,7 @@ def docpage(request, version, typ, filename):
|
|||||||
ver = currver
|
ver = currver
|
||||||
elif version == 'devel':
|
elif version == 'devel':
|
||||||
if not typ == 'static':
|
if not typ == 'static':
|
||||||
raise Http404("Only static version of developer docs available")
|
return HttpResponseRedirect("/docs/devel/static/%s.html" % filename)
|
||||||
ver = Decimal(0)
|
ver = Decimal(0)
|
||||||
loaddate = Version.objects.get(tree=Decimal(0)).docsloaded
|
loaddate = Version.objects.get(tree=Decimal(0)).docsloaded
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user