mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-26 11:33:58 +03:00
Fix typos in aiohttp tutorial
This commit is contained in:
parent
299a7bca89
commit
45e6b943f6
|
@ -223,7 +223,7 @@ Put next into the ``application.py``:
|
||||||
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
"""Create and return Flask application."""
|
"""Create and return aiohttp application."""
|
||||||
container = ApplicationContainer()
|
container = ApplicationContainer()
|
||||||
|
|
||||||
app: web.Application = container.app()
|
app: web.Application = container.app()
|
||||||
|
@ -426,7 +426,7 @@ Edit ``application.py``:
|
||||||
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
"""Create and return Flask application."""
|
"""Create and return aiohttp application."""
|
||||||
container = ApplicationContainer()
|
container = ApplicationContainer()
|
||||||
container.config.from_yaml('config.yml')
|
container.config.from_yaml('config.yml')
|
||||||
container.config.giphy.api_key.from_env('GIPHY_API_KEY')
|
container.config.giphy.api_key.from_env('GIPHY_API_KEY')
|
||||||
|
|
|
@ -6,7 +6,7 @@ from .containers import ApplicationContainer
|
||||||
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
"""Create and return Flask application."""
|
"""Create and return aiohttp application."""
|
||||||
container = ApplicationContainer()
|
container = ApplicationContainer()
|
||||||
container.config.from_yaml('config.yml')
|
container.config.from_yaml('config.yml')
|
||||||
container.config.giphy.api_key.from_env('GIPHY_API_KEY')
|
container.config.giphy.api_key.from_env('GIPHY_API_KEY')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user