IMServer:mod wsgi: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(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 ...")
(No difference)

Revision as of 15:53, 19 January 2011

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.