Technology Errors

ImportError: No module named django.core.management, Django Error After Upgrade

On one of my servers I run a couple sites via Django and recently when I upgraded the server it broke the Django sites that were running via FastCGI. After some investigation I was able to find the issue which happened to be a basic conflict between python2.4 which is the default python version on CentOS Linux and python2.6 which I installed to run via python26 instead of python. This way I can change the environment of any site that needs it to Python version 2.6 without much hassle. Below I describe the error in detail as well as what resolved the issue.

Technology Errors

Yum Error – ImportError: No module named yummain

You may see an error like the below when attempting to see if a certain package is installed using the yum package manager. Yum is the default package manager on RedHat Linux and CentOS Linux. Using the “yum list *SOMETEXT*” command will list all packages that contain “sometext” or you could use “yum list sometext” which will list a package specifically called “sometext”. Below you can see an attempt to list the “git” package on a CentOS server however an error was returned.