Roberto,

Dynamic VirtualEnv does look broken.  It looks like it can sometimes show
the wrong site for a URL.  I'm running uWSGI with:

./uwsgi -s /tmp/uwsgi.sock --vhost --no-site -L -C -M -p4

Each of my uwsgi_application.py files looks like (fairly standard):

import os, sys
PATH_BASE =
os.path.dirname(os.path.dirname(os.path.dirname(os.path.normpath(__file__))))
sys.path.append(PATH_BASE)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

I have a separate nginx config file for each of my virtualhosts - here is an
example:

    upstream mustard_upstream {
        server unix:///tmp/uwsgi.sock;
    }

    server {
        listen       80;
        server_name  mustard.com;

        access_log logs/access-mustard.log main;
        error_log logs/error-mustard.log error;
        root /home/www/mustard;

        location / {
            uwsgi_pass mustard_upstream;
            include uwsgi_params;
            uwsgi_param UWSGI_SCRIPT uwsgi_application;
            uwsgi_param UWSGI_PYHOME /home/www/mustard/;
        }
    }

As I said, sometimes the wrong site loads, other times the correct site
loads but the page is incorrectly rendered (suggesting that the markup,
stylesheets, etc. may be getting delivered to the browser incorrectly).

Regards,
James

On Tue, Sep 14, 2010 at 7:07 AM, Roberto De Ioris <[email protected]> wrote:

> Hi all, we have two regression in 0.9.6.1
>
> 1) --python-path/--pp/--pythonpath are not parsed under --ini and
> --ini-paste
> (fixed in mercurial repository)
>
> 2) Dynamic virtualenv looks broken (needs testing)
>
> If you have problems with dynamic virtualenv please report your
> configuration to the list
>
> --
> Roberto De Ioris
> http://unbit.it
> JID: [email protected]
>
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to