Comment #2 on issue 177 by Graham.Dumpleton: Geopy uses "print" which  
breaks mod_wsgi
http://code.google.com/p/django-hotclub/issues/detail?id=177

The WSGI specification doesn't disallow using 'print' but mod_wsgi places  
restrictions on doing so to promote
portable WSGI applications. Specifically, certain WSGI adapters such as  
those for CGI, use stdin/stdout to
communicate with the server. Thus, using 'print' in that case will cause  
debug messages to get mixed up in
response output.

Although reassigning sys.stdout to sys.stderr can be used in the WSGI  
script file for mod_wsgi, it is
discouraged. The original package which is producing debug output, should  
be use sys.stderr explicitly and
not sys.stdout implicitly.

Thus, package should use:

   print >> sys.stderr, "some debug"

That or use proper logging system.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to