On Jan 4, 6:02 pm, "artyom.shalkhakov" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> I've tried to run Pylons as a WSGI application using apache2.2 and
> mod_wsgi2.0.
> So far simple 'hello world' applications work fine (Pylons through
> paste serve works okay, too).
>
> When I try to run Pylons under mod_wsgi, I get the following error:
>
> [Fri Jan 04 12:36:00 2008] [error] [client 127.0.0.1]
> DistributionNotFound: mysite.com
>
> The app.wsgi looks like this:
>
> from paste.deploy import loadapp
> # yes, everything is under my home directory
> application = loadapp('config:development.ini', relative_to='home/
> artyom/public_html/mysite.com/')
>
> What can be wrong here?Run your application once using 'paster serve' before trying to run it under mod_wsgi. I haven't looked into what 'paster serve' does yet, but it seems to do some once off initialisation to set up the site directories properly. There is possibly some other command which will do the same thing rather than you actually have to run up the server itself. I was going to investigate and document this, but got side tracked. :-) Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
