Django broken after Ubuntu 9.04 upgrade

I recently updated my personal laptop to Ubuntu 9.04. Everything went well during the upgrade, and it's all smooth sailing on the desktop afterwards. It's not an earth-shatteringly different upgrade but it's nice and solid.

The only problem is that it broke my local Django dev installs. I kept getting "Internal Server Error"s from Apache, and the following weird error when running Django's local dev server:

$ ./manage.py runserver
Traceback (most recent call last):
  File "./manage.py", line 2, in <module>
    from django.core.management import execute_manager
ImportError: No module named django.core.management

After some searching I found this bug report on LaunchPad which basically says that with Ubuntu 9.04 Python2.6 no longer has /usr/local/lib/python2.6/site-packages in the path. You have to put your local code in /usr/local/lib/python2.6/dist-packages. Once I moved my code everything worked fine. <!-- SUMMARY_END -->