Fix #24, import with Django 1.5 on the PYTHONPATH.

Django >=1.5 raises a different exception than previous versions when it
is installed on the PYTHONPATH but is not actually configured. This
catches that exception.