From 04e70df955488a873f4ac2cae78109d94fa9e7d0 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Thu, 8 Oct 2020 12:07:05 -0400 Subject: [PATCH] Make some minor updates to aiohttp and cli tutorials --- docs/tutorials/aiohttp.rst | 12 +++--------- docs/tutorials/cli.rst | 10 +++------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/docs/tutorials/aiohttp.rst b/docs/tutorials/aiohttp.rst index 623d417b..6f14be18 100644 --- a/docs/tutorials/aiohttp.rst +++ b/docs/tutorials/aiohttp.rst @@ -88,18 +88,18 @@ Prepare the environment Let's create the environment for the project. -First we need to create a project folder and the virtual environment: +First we need to create a project folder: .. code-block:: bash mkdir giphynav-aiohttp-tutorial cd giphynav-aiohttp-tutorial - python3 -m venv venv -Now let's activate the virtual environment: +Now let's create and activate virtual environment: .. code-block:: bash + python3 -m venv venv . venv/bin/activate Environment is ready and now we're going to create the layout of the project. @@ -243,12 +243,6 @@ Put next into the ``application.py``: return app -.. note:: - - Container is the first object in the application. - - The container is used to create all other objects. - Now we're ready to run our application Do next in the terminal: diff --git a/docs/tutorials/cli.rst b/docs/tutorials/cli.rst index 3e1e9ac5..b510278d 100644 --- a/docs/tutorials/cli.rst +++ b/docs/tutorials/cli.rst @@ -63,18 +63,18 @@ Prepare the environment Let's create the environment for the project. -First we need to create a project folder and the virtual environment: +First we need to create a project folder: .. code-block:: bash mkdir movie-lister-tutorial cd movie-lister-tutorial - python3 -m venv venv -Now let's activate the virtual environment: +Now let's create and activate virtual environment: .. code-block:: bash + python3 -m venv venv . venv/bin/activate Project layout @@ -271,10 +271,6 @@ Edit ``__main__.py``: main() -.. note:: - - Container is the first object in the application. - Csv finder ----------