Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Output should looks like this.

  1. http://www.example.com/djangoapp1 django version 0.96
  2. http://www.example.com/djangoapp2 django version 1.0.2

Using Apache Server, with mod_python. Or any Server Technology, which recommend most.

Thanks.

share|improve this question
add comment

2 Answers 2

I'm not sure it's possible to do this properly with mod_python. In the past I've seen a ton of cross thread/process leakage when trying this with mod_python. It might work better now using virtualenv but it's not worth it.

Move to mod_wsgi instead for better performance, better support, better memory usage, and less bugs... then follow the wiki page on Virtual Environments for running multiple Django versions.

share|improve this answer
add comment

Technically it should be possible to do it with mod_python. If people do have problems as suggested by others, it is likely because they haven't setup how mod_python uses interpreters properly. Even if sub interpreters are setup properly so each Django instance is in their own, you can have issues though with timezone, language and locale settings because these are controlled through environment variables which are global to the process and not local to the sub interpreter. This has though got nothing to do with different versions of Django being used and could happen in any case where running multiple applications in an Apache process. The same issues come up with mod_wsgi in embedded mode as well. The safest approach is to use mod_wsgi daemon mode. This way each Django instance is in its own process and they can't interfere with each other.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.