Hi Andreas,
Thanks for the reply. I'll go through link shared by you. Just wanted to confirm just by some configuration changes in httpd.conf, will same apache work for multiple python versions.
I came across below lines by Graham Dumpleton:
So the basic limitation here is that the one running Apache instance can only handle either Python 2 or Python 3 code. This is because the Python interpreter itself is embedded inside of the Apache processes through indirect dynamic linking of the Python interpreter shared library when the mod_wsgi module is loaded into Apache. How library linking works means that it isn't possible to load two different versions of the same dynamic shared library into the one process at the same time.
The only solution therefore is to have two separate instances of Apache running, one for Python 2 and one for Python 3 code.
Thanks,
BijalOn Monday, August 28, 2017 at 4:56:41 PM UTC+5:30, Andréas Kühne wrote:
Hi,I found this information that could be handy for setting up with multiple environments and mod_wsgi.I don't think you really need to use a different setup, just some configuration in your httpd.conf file.Otherwise you could also use uwsgi - which can handle that sort of thing easily.Regards,Andréas2017-08-28 13:20 GMT+02:00 BIJAL MANIAR <bij...@gmail.com>:--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 linkIs 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...@googlegroups.com .
To post to this group, send email to django...@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/fadfffe1- .4597-4e56-9f45-2fe1dcd59c55% 40googlegroups.com
For more options, visit https://groups.google.com/d/optout .
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/e24d24c1-d888-4b08-9402-40bddc625214%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment