I have a server which is running CentOS with cpanel/whm. Otherwise, it is pretty much a standard set up.
My problem is that such server is running python 2.4 and I need python 2.6 or later. How do I upgrade without breaking anything?
By the way, I currently have a django application running on that server, which I would also like to move to python 2.6 without breaking it. Is there anything extra that I have to do to do that?
You have to do a parallel install of the new Python.
If you try and update the default Python it will break your system completely.
The simplest thing is to install a newer version using one of the many RPMs that people have built to solve just this problem.
Whatever you do, do not try and install it from source.