> Hi all,
>
> I am now using  uwsgi for my django application with cherokee.
> but still have trouble making them work.
>
> I have configured virtual host's interpreter as:
> uwsgi -s 127.0.0.1:3009  -x /home/km/myproject/uwsgi.xml -w django_wsgi
--logto /var/log/cherokee.error  -p 4 -M
>
> my uwsgi.xml in django project dir contains:
> ###########################
> <uwsgi>
> <pythonpath>/usr/local/lib/python2.6/dist-packages/</pythonpath>
<pythonpath>/home/km/myproject/</pythonpath>
>   <app mountpoint="/">
>   <script>django_wsgi</script>
>   </app>
> </uwsgi>
> ###########################
>
> and my django_wsgi.py in django project dir contains:
> #####################
> import os
> import django.core.handlers.wsgi
> import uwsgi
> os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
> application = django.core.handlers.wsgi.WSGIHandler()
> uwsgi.applications = {'':application}
> ###########################
>
>

First of all, lets rewrite you configuration in a more elegant way :)

<uwsgi>
    <chdir>/home/km/myproject/</chdir>
    <env>DJANGO_SETTINGS_MODULE=settings</env>
    <module>django.core.handlers.wsgi:WSGIHandler()</module>
    <socket>127.0.0.1:3009</socket>
    <logto>/var/log/cherokee.error</logto>
    <master/>
    <processes>4</processes>
</uwsgi>

now run with:

uwsgi -x /home/km/myproject/uwsgi.xml

(no need of another file as django_wsgi.py)

I have removed the pythonpath directive as for django i prefer to chdir to
the app directory. (the current directory is automatically added to the
pythonpath)

Post the whole output of the new configuration run from the command line,
than we will check the cherokee part


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to