2009/8/17 Kellie <[email protected]>:
>
> Hi,
>
> I am new to django and mod_wsgi. I've been reading all of the
> documentation and got mod_wsgi to work with the sample script. When I
> try to change it to use django I get a server error 500. Here is my
> setup:
>
> django.wsgi:
>
> import os
> import sys
> sys.path.append('/home/soda/django')
> sys.path.append('/home/soda/django/thesodamachine')
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'thesodamachine.settings'
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
>
> My apache conf points to the django.wsgi and my media directory. I
> think it must be right because the sample mod_wsgi script works fine.
>
> My django project just has 1 view. I tested it with the development
> server and it works fine.
>
> I checked my error log but all I get is
>
> Exception occurred processing WSGI script '/home/soda/django/
> thesodamachine/apache/django.wsgi'.
>
> I'd really appreciate any help.

What version of mod_wsgi are you using?

Are you using embedded mode or daemon mode? Please post relevant part
of Apache configuration file where you setup mapping for Django.

There normally be a Python traceback and details of the Python
exception following on from the message:

Exception occurred processing WSGI script
'/home/soda/django/thesodamachine/apache/django.wsgi'.

if this is a valid problem in WSGI script file or Django WSGI application.

Please post the messages for Apache error log, both main Apache error
log and any virtual host error log, around the time of when the
request was made.

Also post section from Apache access logs for same period of time.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to