Point Django at different Python version

django, path, python

Solution

You have it backwards.

Django is added to Python's environment.

When you install a new Python, you must reinstall everything -- including Django -- for the new Python.

Once you have the new Django in the new Python, your `PATH` settings determine which Python you're using.

The version of Python (and the `PYTHONPATH`) determine which Django you'll use.

Problem

Django application requires a later version of Python. I just installed it to `2.5` (from `2.4`) and now when I do a `python` at the command line, it says `2.5.2`. Having said that, Django still says `Python Version: 2.4.3`. How do I correct this? I've rebooted / restarted / redeployed to no avail.

Original source