Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've upgraded Python from 2.5 to 2.7, but the upgrade broke Django. My Django tests and shell report they can't find the modules.

I tried putting the site-packages with Django on my PYTHONPATH in .bashrc, but this failed to to find MySQLdb.

Do I have to reinstall Django?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Yes. And MySQLdb.

python2.7 setup.py install

(well, not Django, but why take a chance when it's so easy to do?)

share|improve this answer
    
Well, I'm trying to install MySQLdb, but the setup wants setuptools, whose setup wants zlib, and apparently my installation of Python didn't create the zlib module properly. –  chernevik Feb 20 '11 at 22:24
    
Fixed zlib by installing zlib1g-dev, then reinstalling python. That gave me setuptools. MySQLdb installation then wanted mysql_conf, which I got by installing libmysqlclient15-dev. Then I could install MySQLdb, and Django worked. God bless the various packagers -- seriously, they make incredible things possible -- but this installation was more google-fu than I've needed in a long time. –  chernevik Feb 20 '11 at 23:05
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.