Are you able to run the script from the root dir? If not you may have relative paths in settings.py or manage.py. Also if you're using sqlite the user needs write to both the db file and the containing directory. See this post [1].
[1] http://groups.google.com/group/pinax-users/browse_thread/thread/92a18c07f5ef60f8/e1b2711fe16e5136#e1b2711fe16e5136 Here are the relevant snippets from my standard settings.py and manage.py: manage.py: import sys from os.path import abspath, dirname, join PROJECT_ROOT = abspath(dirname(__file__)) sys.path.insert(0, join(PROJECT_ROOT, "apps")) settings.py: DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = join(dirname(__file__), 'db', 'mysite.db') On Wed, Nov 26, 2008 at 1:47 AM, Mario César <[EMAIL PROTECTED]> wrote: > On Wed, Nov 26, 2008 at 5:08 AM, Alvaro Lopez Ortega > <[EMAIL PROTECTED]> wrote: >> On 26-nov-08, at 08:00, Mario César wrote: >> >>> I was looking for setup a django site using unix socks, I write this >>> script http://dpaste.com/93801/ named site.py I set up both cases: >>> using unix socks and with host and port. >>> >>> My issue is that for some reason cherokee doesn't start up the script, >>> even If I restart it, I know the script is well writed, cause If I >>> manually start up the script doing "$python site.py", cherokee start >>> to serve normally the django site. >>> >>> Why works for manage.py and not for my script ? both has the same >>> permissions and both are executable. >>> >>> Someone can try this ? Am I missing something? >> >> A few things that come to my mind: >> >> - Is the server jailed? (chroot) > > No > >> - Does "/usr/bin/env python" work? > > Yes, I can run the script with $python site.py as doing $./site.py, > So, the #!/usr/bin/env python works > >> Cherokee executes: sh -c "<YOUR_COMMAND>". Could you please try that as >> well? > > I did It, and works. > >> In case none of those question rang the bell; may you try with >> CHEROKEE_TRACE, please? >> >> http://www.cherokee-project.com/doc/dev_debug.html > > Sure ! here is the output, I cut some lines and make some comments > http://dpaste.com/93824/ > >> -- >> Octality >> http://www.octality.com/ >> >> > > > > -- > Mario César Señoranis Ayala. > _______________________________________________ > Cherokee mailing list > [email protected] > http://lists.octality.com/listinfo/cherokee >
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
