Skip to content

Commit e37b518

Browse files
committed
Rename views module to handlers in aiohttp example
1 parent a9970b6 commit e37b518

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/miniapps/aiohttp/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ The output should be something like:
110110
giphynavigator/application.py 12 0 100%
111111
giphynavigator/containers.py 6 0 100%
112112
giphynavigator/giphy.py 14 9 36%
113+
giphynavigator/handlers.py 9 0 100%
113114
giphynavigator/services.py 9 1 89%
114115
giphynavigator/tests.py 37 0 100%
115-
giphynavigator/views.py 9 0 100%
116116
---------------------------------------------------
117117
TOTAL 92 15 84%

examples/miniapps/aiohttp/giphynavigator/application.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from aiohttp import web
44

55
from .containers import Container
6-
from . import views
6+
from . import handlers
77

88

99
def create_app():
@@ -12,13 +12,13 @@ def create_app():
1212
container.config.from_yaml('config.yml')
1313
container.config.giphy.api_key.from_env('GIPHY_API_KEY')
1414

15-
container.wire(modules=[views])
15+
container.wire(modules=[handlers])
1616

1717
app = web.Application()
1818
app.container = container
1919

2020
app.add_routes([
21-
web.get('/', views.index),
21+
web.get('/', handlers.index),
2222
])
2323

2424
return app

examples/miniapps/aiohttp/giphynavigator/views.py renamed to examples/miniapps/aiohttp/giphynavigator/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Views module."""
1+
"""Handlers module."""
22

33
from aiohttp import web
44
from dependency_injector.wiring import Provide

0 commit comments

Comments
 (0)