Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on Debian Lenny and the latest backports django is 1.1.1 final. I don't want to use sid so I probably have to download django.

I have my sites located at: /www/ and I plan on using mod_wsgi with Apache2 as a reverse proxy from nginx.

Now that I downloaded pip and virtualenv through pip, can someone explain how I could get my /www/ sites which are yet to be made to all use django-1.2?

Question 1.1: Where do you suggest I download django-1.2? I know you can store it anywhere but where would you store it?

Question 1.2: After installing it how do you actually tie that django-1.2 instead of the system default django 1.2 to the reverse proxied Apache conf?

I would prefer it if answers were more specific than vague and have examples of setups.

share|improve this question

Ensure you consult:

for how to setup mod_wsgi with virtual environments.

That way you can leave any existing Django alone and install new one into virtualenv and have your WSGI application under mod_wsgi use it.

share|improve this answer
up vote 1 down vote accepted

Ended up following the excellent guide @

I really like comprehensive tutorials like this, instead of some RTFM link to these types of things which do NOT cover integration of different services.

share|improve this answer

Simply remove the Django package provided by Debian and install from the tar.gz download or use svn to get the latest.


share|improve this answer
Is that the preferred way of doing it, though? And how would you handle the situation if you wanted your existing sites to use 1.1.1 but multiple, newer sites using 1.2? – meder omuraliev Jun 14 '10 at 19:03
I believe Graham Dumpleton's answer covers all that. – Adam Jun 15 '10 at 14:19

Your Answer


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.