Home > Mobile >  Can I deploy both python 2 django 1.9 and python 3.9 and django 3.2 apps with same apache server
Can I deploy both python 2 django 1.9 and python 3.9 and django 3.2 apps with same apache server

Time:02-11

i have developed one project using python 3.9 and django 3.2.

and also one existing project is there that was developed python version 2 and Django 1.9.4. it was deployed in apache server it is working fine.

problems are raised when we trying to deploy latest project like python 3.9 and Django 3.2 in current servers(which have already python 2 and django 1.9.4 project is running).

CodePudding user response:

Yes, you can using modwsgi_express which will start another Apache with the modwsgi configure and you can proxy the new application from your first apache to the apache started with the modwsgi_express

CodePudding user response:

Yes you can. You should have the two versions of Python installed on your server and two virtual environments with the different Django versions installed to isolate your projects.

Related: How to use virtualenv with Python?

  • Related