Skip to content Skip to sidebar Skip to footer

Syntaxerror: Invalid Syntax When Running Syncdb On Django

I'm trying to install a django-cms variant (wagtail) and get everything working up until I am doing the './manage.py syncdb'. At that point I get the traceback as follows: Tracebac

Solution 1:

dictionary comprehensions were added in Python 2.7. You're running 2.6. So you need to change this line:

indexed_fields = {field: dict(type="string") for field in indexed_fields}

Into this:

indexed_fields = dict((field, dict(type="string")) for field in indexed_fields)

Post a Comment for "Syntaxerror: Invalid Syntax When Running Syncdb On Django"