The error indicates that the mod_wsgi binary you have installed has been 
compiled for Python 2.6. You need to install one compiled for Python 2.7.

Graham

> On 19 Aug 2015, at 4:36 pm, Rakesh Bhatt <[email protected]> wrote:
> 
> Hi,
> 
> I was trying to use Django on Apache in EC-2 server. I had following 
> configurations
> 
> Python 2.7.9
> Django 1.8
> Apache   2.2.29 
> 
> Current when i try to start Django server with python manage.py runserver 
> 0.0.0.0:80 <http://0.0.0.0/> everything works fine
> 
> I tried to run django with apache using mod-wsgi. I followed below tutorial 
> for integration 
> 
> https://www.google.com/url?q=https%3A%2F%2Fpragmaticstartup.wordpress.com%2F2011%2F04%2F02%2Fnon-techie-guide-to-setting-up-django-apache-mysql-on-amazon-ec2%2F&sa=D&sntz=1&usg=AFQjCNH6djdaKsVi7-h1qb9r00pJvLGTJg
>  
> <https://www.google.com/url?q=https%3A%2F%2Fpragmaticstartup.wordpress.com%2F2011%2F04%2F02%2Fnon-techie-guide-to-setting-up-django-apache-mysql-on-amazon-ec2%2F&sa=D&sntz=1&usg=AFQjCNH6djdaKsVi7-h1qb9r00pJvLGTJg>
> 
> This tutorial itself has some configuration problems. After resolving all 
> issues currently apache starts but while hitting a url it shows an error:
> 
> 
> fasttypes = {int, str, frozenset, type(None)}, SyntaxError: invalid syntax
> 
> As i searched about the error it shows the problem about misconfiguration as 
> i see i didn't have any problematic configuration 
> 
> Currently i had started django development server but we need to use apache 
> for this. 
> 
> Thanks in advance for Help
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/modwsgi 
> <http://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to