IMServer:mod wsgi

From KitwarePublic
Revision as of 15:53, 19 January 2011 by Dhanannjay.deo (talk | contribs) (Created page with "== wsgi interface in Apache == * Recompile with the matching python version * I had issues with python 2.4.* but worked well with python 2.6.* When wsgi interface uses modules ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

wsgi interface in Apache

  • Recompile with the matching python version
  • I had issues with python 2.4.* but worked well with python 2.6.*

When wsgi interface uses modules from the local directory, the script should first append python path as follows otherwise the script which runs without errors in debug mode will not be able to run when called from wsgi interface.

<source lang="python">

sys.path.append('/var/www-dj/') from mongo import m

</source>

Development

  • Any wsgi script must be able to maintain persistent connection with mongo to boost speed
  • Script to test persistent connections.