Skip to content
Myr

Added hint about print statements in CGI.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #646

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent fedc96c · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:docs/deploying/cgi.rst+4 added
14 unmodified lines
15 '__main__':`` block or moved to a separate file. Just make sure it's16 not called because this will always start a local WSGI server which17 we do not want if we deploy that application to CGI / app engine.1819 With CGI, you will also have to make sure that your code does not contain20 any ``print`` statements, or that ``sys.stdin`` is overridden by something21 that doesn't write into the HTTP response.2223Creating a `.cgi` file24----------------------2526First you need to create the CGI application file. Let's call it
35 unmodified lines