mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-03 15:38:59 +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
|
||||
elif version == 'devel':
|
||||
if not typ == 'static':
|
||||
raise Http404("Only static version of developer docs available")
|
||||
return HttpResponseRedirect("/docs/devel/static/%s.html" % filename)
|
||||
ver = Decimal(0)
|
||||
loaddate = Version.objects.get(tree=Decimal(0)).docsloaded
|
||||
else:
|
||||
|
Reference in New Issue
Block a user