i didn't mean to include that in the previous commit!
This commit is contained in:
parent
f7ea8e18bf
commit
27c0369b94
|
@ -13,10 +13,9 @@ def app(redisdb):
|
||||||
app_.config['REDIS_URI'] = 'redis://localhost:15487'
|
app_.config['REDIS_URI'] = 'redis://localhost:15487'
|
||||||
app_.debug = True
|
app_.debug = True
|
||||||
|
|
||||||
@app_.route('/', defaults={'name': 'world'})
|
@app_.route('/')
|
||||||
@app_.route('/<name>')
|
def hello():
|
||||||
def hello(name='world'):
|
return 'Hello, world!'
|
||||||
return 'Hello, {name}!'.format(name=name)
|
|
||||||
with app_.app_context():
|
with app_.app_context():
|
||||||
yield app_
|
yield app_
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue