[Answer]-Django haystack Syntax error

1👍

This appears to be a Python version issue. Python 3.2 does not have the u prefix for strings, because strings are unicode by default in Python 3. The prefix was reintroduced in Python 3.3 to make compatibility with 2.7 easier. See the 3.3 release notes.

Note that the PyPI page for Haystack 2.3.1 mentions 3.3+ as a requirement.

You should upgrade your Python version to 3.3.

Leave a comment