El 17/08/10 10:38, Keith Archer escribió:
I'm attempting to run a Django application with Cherokee and uWSGI. I have
followed the cookbook recipe exactly (as well as several variations I've
found via google) but no matter the configuration, I always see "uWSGI wsgi
application not found". I've googled and tried every possible solution even
remotely simular to my situation and I haven't had any success. Any help is
greatly appreciated!

Is the django_uwsgi.py file inside the same directory as the uwsgi.xml file? perhaps inside any of the paths you've set as your pythonpath?

As a recommendation, I usually put both the .py and the .xml files inside the django project directory (your project, not django itself).

Hope that helps.
Cherokee: 1.0.8
Django: 1.2.1 (latest)
Django App: new, unedited for testing
uWSGI: 0.9.6-dev (64bit)
OS: Ubuntu 10.04 server w/all updates

django_uwsgi.py
======================
import os
import django.core.handlers.wsgi

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
application = django.core.handlers.wsgi.WSGIHandler()


uwsgi.xml
======================

<uwsgi>
     <pythonpath>/var/www/streamy/</pythonpath>
     <pythonpath>/var/www/</pythonpath>
     <app mountpoint="/">
         <script>django_wsgi</script>
     </app>
</uwsgi>


uWSGI log
======================
$ /usr/local/bin/uwsgi -s 127.0.0.1:45425 -t 10 -M -p 1 -C  -x
/var/www/streamy/uwsgi.xml
SYSNAME: Linux
NODENAME: strea.my
RELEASE: 2.6.32-24-server
VERSION: #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010
MACHINE: x86_64
[uWSGI] parsing config file /var/www/streamy/uwsgi.xml
*** Starting uWSGI 0.9.6-dev (64bit) on [Tue Aug 17 01:16:27 2010] ***
***
*** You are running a DEBUG version of uWSGI, plese disable DEBUG in
uwsgiconfig.py and recompile it ***
***
compiled with version: 4.4.3
Python version: 2.7 (r27:82500, Aug 12 2010, 23:14:53)
[GCC 4.4.3]
your memory page size is 4096 bytes
  *** WARNING: you have enabled harakiri without post buffering. Slow upload
could be rejected on post-unbuffered webservers ***
allocated 624 bytes (0 KB) for 1 request's buffer.
binding on TCP port: 45425
[uWSGI DEBUG] uwsgi socket SO_RCVBUF size: 87380
[uWSGI DEBUG] uwsgi socket SO_SNDBUF size: 16384
your server socket listen backlog is limited to 64 connections
initializing hooks...done.
added /var/www/streamy/ to pythonpath.
added /var/www/ to pythonpath.
interpreter for app 0 initialized.
application 0 (/) ready
setting default application to 0
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 17943)
spawned uWSGI worker 1 (pid: 17944)
[uWSGI DEBUG] uwsgi payload size: 1130 (0x46A) modifier1: 0 modifier2: 0
[uWSGI DEBUG] PATH_INFO=/bin:/usr/bin:/sbin:/usr/sbin
[uWSGI DEBUG] PATH_INFO=/
[uWSGI DEBUG] SCRIPT_NAME=
added /var/www/streamy/ to pythonpath.
added /var/www/ to pythonpath.
interpreter for app 0 initialized.
ValueError: Empty module name
[pid: 17944|app: -1|req: -1/1] 66.166.4.165 () {58 vars in 1130 bytes} [Tue
Aug 17 01:16:44 2010] GET / =>  generated 46 bytes in 17 msecs (HTTP/1.1 500)
2 headers in 63 bytes (0 async switches on async core 0)


Cherokee error log
======================
No errors.


_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to