Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
to_string import fixed #4
In : from django_webtest import WebTest
ImportError Traceback (most recent call last)
/home/vagrant/.virtualenvs/gsa/lib/python2.6/site-packages/django_webtest/init.py in ()
ImportError: cannot import name to_string
I have changed the import to:
from webtest.lint import to_string
seems to fix the issue
I can't merge this change as-is because it would break backwards compatibility with WebTest < 2.0. There is an another pull request, https://bitbucket.org/kmike/django-webtest/pull-request/4/fix-import-error-with-webtest-20/diff , but I can't merge it either, because it uses six and six is not a dependency of WebTest 1.4.3 so it also would break backwards compatibility.
I'll fix it by introducing django_webtest.compat soon.