mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-06-30 02:13:27 +03:00
Make micro cosmetic changes to flask, aiohttp & sanic examples
This commit is contained in:
parent
fb5488b050
commit
e2f4ab85d5
|
@ -11,7 +11,6 @@ def create_app():
|
||||||
container = Container()
|
container = Container()
|
||||||
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')
|
||||||
|
|
||||||
container.wire(modules=[handlers])
|
container.wire(modules=[handlers])
|
||||||
|
|
||||||
app = web.Application()
|
app = web.Application()
|
||||||
|
|
|
@ -11,7 +11,6 @@ def create_app():
|
||||||
container = Container()
|
container = Container()
|
||||||
container.config.from_yaml('config.yml')
|
container.config.from_yaml('config.yml')
|
||||||
container.config.github.auth_token.from_env('GITHUB_TOKEN')
|
container.config.github.auth_token.from_env('GITHUB_TOKEN')
|
||||||
|
|
||||||
container.wire(modules=[views])
|
container.wire(modules=[views])
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
|
@ -11,7 +11,6 @@ def create_app():
|
||||||
container = Container()
|
container = Container()
|
||||||
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')
|
||||||
|
|
||||||
container.wire(modules=[handlers])
|
container.wire(modules=[handlers])
|
||||||
|
|
||||||
app = Sanic('Giphy Navigator')
|
app = Sanic('Giphy Navigator')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user