Skip to content Skip to sidebar Skip to footer

Wsgi Apps With Python 2 And Python 3 On The Same Server?

I already have a web application in written in Python 2 that runs over WSGI (specifically, OpenERP web server). I would like to write a new web application that would run on the sa

Solution 1:

No, it is not possible with mod_wsgi (see here: https://github.com/GrahamDumpleton/mod_wsgi/issues/21 and here: https://serverfault.com/questions/599859/multiple-python-versions-under-apachemod-wsgi)

This post also provides an alternative: using nginx.

Solution 2:

Its quite possible. This is what virtualenv as all about. Set up the second app in a virtualenv , with python3 .

You an add it in a virtualhost configuration in apache.

Post a Comment for "Wsgi Apps With Python 2 And Python 3 On The Same Server?"