Make Django dependency and functionality optional.
Drop Python 2.6 support (lacking 'unittest2').