Make some minor updates to aiohttp and cli tutorials

This commit is contained in:
Roman Mogylatov 2020-10-08 12:07:05 -04:00
parent 3ea9b7b761
commit 04e70df955
2 changed files with 6 additions and 16 deletions

View File

@ -88,18 +88,18 @@ Prepare the environment
Let's create the environment for the project. 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 .. code-block:: bash
mkdir giphynav-aiohttp-tutorial mkdir giphynav-aiohttp-tutorial
cd 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 .. code-block:: bash
python3 -m venv venv
. venv/bin/activate . venv/bin/activate
Environment is ready and now we're going to create the layout of the project. 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 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 Now we're ready to run our application
Do next in the terminal: Do next in the terminal:

View File

@ -63,18 +63,18 @@ Prepare the environment
Let's create the environment for the project. 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 .. code-block:: bash
mkdir movie-lister-tutorial mkdir movie-lister-tutorial
cd 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 .. code-block:: bash
python3 -m venv venv
. venv/bin/activate . venv/bin/activate
Project layout Project layout
@ -271,10 +271,6 @@ Edit ``__main__.py``:
main() main()
.. note::
Container is the first object in the application.
Csv finder Csv finder
---------- ----------