Просмотр исходного кода

Merge pull request #657 from offby1/master

Minor tweaks to python_web_app.rst
Guillaume J. Charmes 12 лет назад
Родитель
Сommit
d3b9733507
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      docs/sources/examples/python_web_app.rst

+ 2 - 1
docs/sources/examples/python_web_app.rst

@@ -70,7 +70,8 @@ lookup the public-facing port which is NAT-ed store the private port used by the
 
 
 .. code-block:: bash
 .. code-block:: bash
 
 
-    curl http://`hostname`:$WEB_PORT
+    # install curl if necessary, then ...
+    curl http://127.0.0.1:$WEB_PORT
       Hello world!
       Hello world!
 
 
 access the web app using curl. If everything worked as planned you should see the line "Hello world!" inside of your console.
 access the web app using curl. If everything worked as planned you should see the line "Hello world!" inside of your console.