On 19 April 2010 13:31, dononyx <[email protected]> wrote:
> Leopard Server 10.5.8, mod_wsgi 3.2
> otool works
> file works like other posts.
> My problem is that Apache throws an error when I Include the
> ess_wsgi.wsgi file which is:
> #!/usr/bin/python
> import os, sys
> sys.path.append('/Library/WebServer/Documents')
> sys.path.append('Library/WebServer/Documents/ess')
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'ess.settings'
>
> from django.core.handlers.wsgi import WSGIHandler
>
> application = WSGIHandler()
>
> I get a Syntax error on line 2.
> Invalid command 'import', perhaps misspelled or defined by a module
> not included in the server configuration??
> Any ideas, I Included the file?

That error would suggest you are including the .wsgi file in the
Apache configuration file directly somehow, perhaps using 'Include'
directive. You shouldn't be doing that.

Post what you are putting in your Apache configuration. Make sure you read:

  http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
  http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

Graham

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