> I'll show you the contents of my xml and py files used for uWSGI:
>
> uwsgi.xml
> ---
> <uwsgi>
> <pythonpath>/usr/local/django/voxi_production/</pythonpath>
> <app mountpoint="/">
> <script>django_wsgi</script>
> </app>
> </uwsgi>
>
> uwsgi.py
> ---
> import os, sys
> import django.core.handlers.wsgi
>
> sys.path.append('/usr/local/django/')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'voxi_production.settings'
> application = django.core.handlers.wsgi.WSGIHandler()
>
> # Mount application to a URL
> applications = {'/': application }
>
> In Cherokee I use this source: /usr/bin/uwsgi -M -p 4 -s /tmp/cherokee/
> voxi_production.sock -C -x /usr/local/django/voxi_production/uwsgi.xml
>
Only for example you can avoid having to manage 2 files and having such a
long commandline in uwsgi startup: (this config is for uWSGI 0.9.6.1)
<uwsgi>
<pythonpath>/usr/local/django/voxi_production/</pythonpath>
<master/>
<processes>6</processes>
<socket>/tmp/cherokee/voxi_production.sock</socket>
<chmod/>
<![CDATA[
import os, sys
import django.core.handlers.wsgi
sys.path.append('/usr/local/django/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'voxi_production.settings'
application = django.core.handlers.wsgi.WSGIHandler()
]]>
</uwsgi>
or even simpler
<uwsgi>
<pythonpath>/usr/local/django/voxi_production/</pythonpath>
<pythonpath>/usr/local/django/</pythonpath>
<env>DJANGO_SETTINGS_MODULE=voxi_production.settings</env>
<module>django.core.handlers.wsgi:WSGIHandler()</module>
<master/>
<processes>6</processes>
<socket>/tmp/cherokee/voxi_production.sock</socket>
<chmod/>
</uwsgi>
Then you can simply run
uwsgi -x <filename>
--
Roberto De Ioris
http://unbit.it
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee