Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added hint about print statements in CGI. #647

Merged
merged 1 commit into from

2 participants

Markus Unterwaditzer Kenneth Reitz
Markus Unterwaditzer
Collaborator

Fix #646

Kenneth Reitz
Collaborator

A better solution may be to overtake sys.stdout.

Markus Unterwaditzer
Collaborator

You mean override it with noop? Should that be included in the docs or as part of flask? In the latter case, how should flask detect it's on CGI?

Markus Unterwaditzer
Collaborator

Better?

Kenneth Reitz
Collaborator

Thanks!

Kenneth Reitz kennethreitz merged commit 8131496 into from
Markus Unterwaditzer
Collaborator
Markus Unterwaditzer untitaker referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Markus Unterwaditzer untitaker referenced this pull request from a commit in untitaker/flask
Markus Unterwaditzer untitaker Fixing my own pull request #647
Wrote "stdin" instead of "stdout".
c549e58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 10, 2012
  1. Markus Unterwaditzer
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/deploying/cgi.rst
4 docs/deploying/cgi.rst
View
@@ -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
----------------------
Something went wrong with that request. Please try again.