minor compatibility fixes

- tuple unpack of django.get_version() failed with django 1.4
- import of WSGIServerException failed with django 1.5.5