Skip to content

Instantly share code, notes, and snippets.

@okn3
Created October 16, 2015 06:35
Show Gist options
  • Select an option

  • Save okn3/fd86c226172dc8ee928b to your computer and use it in GitHub Desktop.

Select an option

Save okn3/fd86c226172dc8ee928b to your computer and use it in GitHub Desktop.
adapter.wsgi
import sys
import os
dirpath = os.path.dirname(os.path.abspath(__file__))
sys.path.append(dirpath)
# Change working directory so relative paths (and template lookup) work again
os.chdir(os.path.dirname(__file__))
import bottle
# ... build or import your bottle application here ...
# Do NOT use bottle.run() with mod_wsgi
import index
application = bottle.default_app()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment