>
> 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).


Yes, both files are located in the django project directory as you describe.

ups, re-check your config... the file is called django_uwsgi.py, while you
> are using "django_wsgi" in your xml file... probably that is the problem.


I tried your suggestion, but I still got the same error. uWSGI added a new
line to it's log, however: ImportError: Import by filename is not supported.


uWSGI log
================
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 23:24:25 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: 41989
[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.
ImportError: Import by filename is not supported.
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 16352)
spawned uWSGI worker 1 (pid: 16353)
[uWSGI DEBUG] uwsgi payload size: 1187 (0x4A3) 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.
ImportError: No module named @?s
[pid: 16353|app: -1|req: -1/1] 66.166.4.165 () {56 vars in 1187 bytes} [Tue
Aug 17 23:26:22 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 mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to