mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 01:47:36 +03:00 
			
		
		
		
	Make some minor updates to aiohttp and cli tutorials
This commit is contained in:
		
							parent
							
								
									3ea9b7b761
								
							
						
					
					
						commit
						04e70df955
					
				| 
						 | 
				
			
			@ -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:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
----------
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user