diff options
| author | alexander-travov <alexander.travov@gmail.com> | 2011-10-26 02:20:42 +0400 |
|---|---|---|
| committer | alexander-travov <alexander.travov@gmail.com> | 2011-10-26 02:20:42 +0400 |
| commit | 8912639e65535a7a6842c48d2773daef1a98aec7 (patch) | |
| tree | a97ed935b0114bdf28b15456a081e164388db341 | |
| parent | 548ec90863ccdb4f1b4dcb0280adcb2466924323 (diff) | |
| download | pyramid-8912639e65535a7a6842c48d2773daef1a98aec7.tar.gz pyramid-8912639e65535a7a6842c48d2773daef1a98aec7.tar.bz2 pyramid-8912639e65535a7a6842c48d2773daef1a98aec7.zip | |
Removing some minor misprints in documentation.
| -rw-r--r-- | docs/narr/firstapp.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/firstapp.rst b/docs/narr/firstapp.rst index 45d65402c..ccc2b8b18 100644 --- a/docs/narr/firstapp.rst +++ b/docs/narr/firstapp.rst @@ -134,7 +134,7 @@ Using the ``if`` clause is necessary -- or at least best practice -- because code in a Python ``.py`` file may be eventually imported via the Python ``import`` statement by another ``.py`` file. ``.py`` files that are imported by other ``.py`` files are referred to as *modules*. By using the -``if __name__ == 'main':`` idiom, the script above is indicating that it does +``if __name__ == '__main__':`` idiom, the script above is indicating that it does not want the code within the ``if`` statement to execute if this module is imported from another; the code within the ``if`` block should only be run during a direct script execution. @@ -208,7 +208,7 @@ WSGI Application Serving Finally, we actually serve the application to requestors by starting up a WSGI server. We happen to use the :func:`paste.httpserver.serve` WSGI server runner, passing it the ``app`` object (a :term:`router`) as the application -we wish to serve. We also pass in an argument ``host=='0.0.0.0'``, meaning +we wish to serve. We also pass in an argument ``host='0.0.0.0'``, meaning "listen on all TCP interfaces." By default, the HTTP server listens only on the ``127.0.0.1`` interface, which is problematic if you're running the server on a remote system and you wish to access it with a web browser |
