On Jan 4, 7:02 am, "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?
> Note that this works as expected:
>
> def application(environ, start_response):
>     status = '200 OK'
>     output = 'Hello World!'
>
>     response_headers = [('Content-type', 'text/plain'),
>                         ('Content-Length', str(len(output)))]
>     start_response(status, response_headers)
>
>     return [output]
>
> Regards,
> Artyom Shalkhakov

Try to append ''home/artyom/public_html" to sys.path

One of mine app.wsgi's:
http://paste.ufsoft.org/5
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to