johnpaulett / django-durationfield

Temporary reusable Django application for adding a DurationField, until Django issue #2443 is resolved.
http://django-durationfield.readthedocs.org
67 stars 24 forks source link

Error when "from django.utils import six" #9

Closed laulaufer closed 11 years ago

laulaufer commented 11 years ago

Hello John, "six" seems dedicated for python 3. Is django-durationfield compatible with python 2.7 ? because it asks for six that is not available for 2.7... Regards, Laurent

johnpaulett commented 11 years ago

@laulaufer django.utils.six is included in Django now (since 1.4.2). It is a compatibility layer that allows the code to run on both Python 3 and Python 2.7. The test suite is passing on Python 2.7: https://travis-ci.org/johnpaulett/django-durationfield/jobs/5562491

What version of Django are you running?

laulaufer commented 11 years ago

juste updated to django 1.5. Works well now :) Thanks