Browse files

Merge pull request #647 from untitaker/print_in_cgi

Added hint about print statements in CGI.
  • Loading branch information...
2 parents fedc96c + 160aa80 commit 813149677d2627a9ca462dbb2fae985369b54384 @kennethreitz kennethreitz committed Dec 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/deploying/cgi.rst
4 docs/deploying/cgi.rst
@@ -16,6 +16,10 @@ Engine`_, where execution happens in a CGI-like environment.
not called because this will always start a local WSGI server which
we do not want if we deploy that application to CGI / app engine.
+ With CGI, you will also have to make sure that your code does not contain
+ any ``print`` statements, or that ``sys.stdin`` is overridden by something
+ that doesn't write into the HTTP response.
Creating a `.cgi` file

0 comments on commit 8131496

Please sign in to comment.