title: Weird error deploying django on apache, mod_wsgi, debian
body: <p>on django 1.8
  In apache error logs am getting</p>
  
  <pre><code>File "..../python2.7/site-packages/django/utils/lru_cache.py", line 28
  fasttypes = {int, str, frozenset, type(None)},
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>googling around this seems to be an error you get when running django 1.7+ and not meeting the minimum python requirement of 2.7.
  however</p>
  
  <pre><code>$ python --version
  Python 2.7.3
  </code></pre>
  
  <p>here is the relevant parts of apache virtual host config.</p>
  
  <pre><code>&lt;VirtualHost &lt;some_ip&gt;:80&gt;       
          WSGIDaemonProcess some_process python-path=/path/to/django-project/main-django-app:/path/to/virtual-env/site-packages/ threads=15 display-name=%{GROUP}
          WSGIProcessGroup some_group
  
          WSGIScriptAlias / /path/to/django-project/main-django-app/wsgi.py
  
          &lt;Directory /path/to/django-project/main-django-app&gt;
          &lt;Files wsgi.py&gt;
                  Order deny,allow
  
                  # Require all granted
                  # for Apache &lt; 2.4
                  Allow from all
          &lt;/Files&gt;
          &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>does anyone have any idea what the issue might be?</p>