dowski's projects - wsgi_filter

wsgi_filter

A filter that lets you run other WSGI applications within CherryPy.

Created: 2006-02-13 | Updated: 2006-07-13 | Status: Active | Tags: python cherrypy filter wsgi

This filter has been integrated into CherryPy and is available in the 2.2 final release.

I believe this filter will only work with the current 2.2 development code of CherryPy.

Changes

  • 0.3
    • Updated to use cherrypy.request.wsgi_environ
    • Fixed bug that kept POST data from being read

Examples

Basic Example

  • Download the archive below
  • Extract it somewhere
  • Read the short filter code
  • Run python wsgi_filter.py
  • Visit http://localhost:8080

More Than Basic Example

  • Follow steps 1-3 above
  • Download web.py and place it on your python path
  • Read the short app code (cp.py and wp.py)
  • Read cppluswebpy.py
  • Run python cp_plus_webpy.py
  • Visit http://localhost:8080

Running PyBloxsom behind CP - New!!

  • Download pybloxsom
  • Decompress and run python setup.py install
  • Read the INSTALL file and follow instructions to install and configure PyBloxsom.
  • Put wsgifilter.py in the same folder with pybloxsom's wsgiapp.py
  • Download cpybloxsom.py and put it in that same folder
  • Run python cpybloxsom.py

Feedback welcome (dowski on #cherrypy, christian@dowski.com, cp mailing lists, etc).

Files:

wsgi_filter.py [colorized]
wsgi_filter.tar.gz
cpybloxsom.py [colorized]


Comments:


2006-02-01
That's great! I need only follow your description and it works already! BTW, it will be perfect if you mentioned that one should copy config.py and adapted, at the last item Running PyBloxsom behind CP - New!! Thanks for the great work again!

Add Comment:

Commenting disabled because of spam problem...

Menu:

Home
Admin

Projects:

balloondemo
brockman
buffet
buffetmyghty
buffetstring
buffetxslt
cardinfo
cp22collection
cp22simple_ajax
cp_middleware_server
cpmyghty
excuses
iresponse
littlebrother
multiauth
phpfilter
pysourcecolorfilter
request2
simplebackend
stunnelfilter
wsgi_filter

Tags:

wireless
wsgi
http
templating
cherrypy
ssl
python
plugins
module
win32
application
ajax
library
cheetah
myghty
filter
kid

Powered By: