mozilla/kuma — pull request #717 by ubernostrum (2012-11-20 20:42:02+00:00)
Title: Bug 797592: Django upgrade

This is, I believe, the minimal set of changes needed to get kuma to be roughly compatible with Django 1.4 and Django 1.2. It doesn't make all of the changes the lint tool suggests; rather, it does the following:

1. Uses the Python stdlib threading module, instead of the now-nonexistent Django thread support module.
2. Uses the Python stdlib json module instead of the Django simplejson.
3. Introduces a compatibility shim for the MySQL exception, which is MySQLdb.OperationalError in 1.2, and django.db.utils.DatabaseError in 1.4.

There are still plenty of things the lint complains about, and that we should fix as we go once we're on 1.4 (in particular, there are some imports that still work on 1.4 but should change, and can't change until we're on 1.4), but this at least gets us functional.

Running tests against both versions has gone well for me so far, but it's always possible I've missed something in the setup, so additional eyes on this are welcome.