[Answered ]-Syntax Error with Django, WSGI, and Apache

2πŸ‘

βœ…

[Fri Oct 14 23:48:13 2016] [error] [client 128.187.3.30]   File "/usr/lib/python2.6/site-packages/django/utils/lru_cache.py", line 28
[Fri Oct 14 23:48:13 2016] [error] [client 128.187.3.30]      fasttypes = {int, str, frozenset, type(None)},
[Fri Oct 14 23:48:13 2016] [error] [client 128.187.3.30]                      ^
[Fri Oct 14 23:48:13 2016] [error] [client 128.187.3.30]  SyntaxError: invalid syntax

Python 2.6 doesn’t support set syntax {....}

You may use a version of Django that supports Python 2.6 but make sure it also supports Mezzanine
OR
Update your Python installation to 2.7

πŸ‘€jamylak

Leave a comment