Il giorno 10/lug/2012, alle ore 10:52, Roy Marples ha scritto:

>> 
> 
> How exactly do I do that test? It looks like python, so I created a file 
> /tmp/test and the above verbatim.
> I then started it like so:
> uwsgi-2.5 --http :9090 --wsgi-file /tmp/test
> 
> And a call to 127.0.0.1:9090 produces this:
> 
> *** Operational MODE: single process ***
> WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7f7ffc61d1c0 
> pid: 3244 (default app)
> *** uWSGI is running in multiple interpreter mode ***
> spawned uWSGI worker 1 (and the only) (pid: 3244, cores: 1)
> Traceback (most recent call last):
>  File "/tmp/test", line 2, in application
>    uwsgi.lock()
> NameError: global name 'uwsgi' is not defined
> [pid: 3244|app: 0|req: 1/1] 127.0.0.1 () {28 vars in 323 bytes} [Tue Jul 10 
> 09:49:28 2012] GET / => generated 0 bytes in
> 0 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0)
> 
> I'm not much of a python or uwsgi guru so any pointers on how to make the 
> test work would be appreciated :)
> 
> Thanks
> 
> Roy
> _______________________________________________


Add

import uwsgi

on top of the code

--
Roberto De Ioris
http://unbit.it
JID: [email protected]

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to