various multiapp and virtualhosting fixes

This commit is contained in:
roberto@sirius
2010-11-22 11:15:02 +01:00
parent 79c30fed23
commit 652a9c5825
3 changed files with 53 additions and 1 deletions
+1 -1
View File
@@ -532,11 +532,11 @@ PyObject *uwsgi_eval_loader(void *arg1) {
wsgi_eval_callable = PyDict_GetItemString(up.loader_dict, up.callable);
}
else {
wsgi_eval_callable = PyDict_GetItemString(up.loader_dict, "application");
}
if (wsgi_eval_callable) {
uwsgi_log( "found the \"%s\" callable\n", up.callable);
if (!PyFunction_Check(wsgi_eval_callable) && !PyCallable_Check(wsgi_eval_callable)) {
uwsgi_log( "you must define a callable object in your code\n");
exit(1);