python - SyntaxError: Invalid Syntax when running syncdb on django -


I'm trying to install a django-cms variant (wagtail) and I '/manage.py syncdb 'At that time I get a traceback as follows:

  traceback (last call final): File "./manage.py", line 10,  

Looks ok for loop syntax ... any ideas? Or was there a huge change in syntax between Python 2.6.6 and Python 27?

I'm running PHhthon 2.6.6 and DNAGo 1.6.1 on RHEL 6.4 (2.6.32-358.L.X86_64). , Postgrass 8.4.18

Any ideas or ideas will be highly appreciated

You are running 2.6. So you need to change this line:

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

In this:

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

Comments