Monday, August 28, 2017

Re: Deploy production django applications with Python2.7 and Python3.5 on same Apache web server

I tried serving both Python2.7 and Python3.5 based django applications through same Apache and it did not work.
Getting below error:

Traceback (most recent call last):
  File "C:/virtualenvs/ecst_venv_D111P36A22M51\lib\", line 67, in <module>
    import os
  File "C:/virtualenvs/ecst_venv_D111P36A22M51\lib\", line 409
    yield from walk(new_path, topdown, onerror, followlinks)
SyntaxError: invalid syntax

Can anyone please confirm if there is an alternative to using different apache instances.


On Monday, August 28, 2017 at 4:50:56 PM UTC+5:30, BIJAL MANIAR wrote:


I have existing setup of django app within virtual env (Python 2.7, Django 1.11), running on Apache2.2 on production environment.
On the same server, I want to setup one more django app within virtual env (Python 3.5, Django 1.11).
How can we have two django apps with two different versions of Python running on same Apache server?

Found an alternative mod_wsgi-express. Below is the link
Is it suitable for production environments and has a good community support? Does it have any limitation?

Please let me know if there are any other ways to achieve this.

Any help would be appreciated.


You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment