I am trying to implement the django example from Graham's 2010 pycon
slides.  No matter whether I use os, sys, and __file__ attribute
approach or hard code the string version of the path, I still get the
error:

    [Wed Feb 15 19:12:26 2012] [error] [client 127.0.0.1] ImportError:
Could not   import settings 'mysite.settings' (Is it on sys.path?): No
module named mysite.settings

>From what I can tell the mysite.wsgi file does not even have the
__file__ attribute, but this does not matter if I am sending
sys.path.insert a hard coded path.

I have the WSGIScriptAlias configured exactly in the example.  The
only thing different is that I am locating the django project under /
usr/local/bin/mysite instead of the /var/www directory or a /home/
someone directory.

It should just work -- what am I doing wrong?

-- 
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