Add WSGI ability

This commit is contained in:
Lucas Verney 2016-02-14 19:18:39 +01:00
parent 9423a61283
commit 31553b7718
2 changed files with 11 additions and 1 deletions

10
app.py Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python3
import bottle
import main
import os
# Change working directory so relative paths (and template lookup) work again
os.chdir(os.path.dirname(__file__))
# ... build or import your bottle application here ...
# Do NOT use bottle.run() with mod_wsgi
application = bottle.default_app()

View File

@ -63,7 +63,7 @@
% else:
<em>
No OpenAccess version found.
% if v["sharable"] is not None:
% if v["sharable"] is None:
<strong>OpenAccess policy is unknown.</strong>
% elif v["sharable"]:
<strong class="green">It could be shared.</strong>