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\site.py", line 67, in <module>
    import os
  File "C:/virtualenvs/ecst_venv_D111P36A22M51\lib\os.py", 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.

Thanks,
Bijal

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

Hi,

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.

Thanks,
Bijal

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c32c92a2-a273-46ea-b190-fc63b4656c67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment