kapilratnani / django_hana

[Discontinued] Django db backend for SAP HANA
BSD 3-Clause "New" or "Revised" License
20 stars 13 forks source link

1.4 incompatibilities #7

Closed m3o7 closed 11 years ago

m3o7 commented 11 years ago

Hi Kapil,

for some reason the following lines caused import errors on my non-aws hana instances: from django.utils.safestring import SafeText, SafeBytes from django.utils import six

I installed django 1.4 via easy_install and our django_hana connector but SafeText etc seem not to be included in the 1.4 package that I had installed.

SafeText, SafeBytes were not used anyway, so that was easy. six was used to re-raise db errors as django errors. For now the original db error will be raise if it occurs, but this would have to be fixed at some point.

But this way it now works also on clean HANA-installations

Best, Marco

kapilratnani commented 11 years ago

Is there a utility to remove unused imports?