forked from orbit-oss/flask
Touch up dbinit tutorial doc.
Discussion on #pocoo with svenstaro, dAnjou, noob13.
This commit is contained in:
parent
c7cdb2f83e
commit
ea2a0629c9
1 changed files with 1 additions and 2 deletions
|
|
@ -24,8 +24,7 @@ If you want to do that, you first have to import the
|
||||||
:func:`contextlib.closing` function from the contextlib package. If you
|
:func:`contextlib.closing` function from the contextlib package. If you
|
||||||
want to use Python 2.5 it's also necessary to enable the `with` statement
|
want to use Python 2.5 it's also necessary to enable the `with` statement
|
||||||
first (`__future__` imports must be the very first import). Accordingly,
|
first (`__future__` imports must be the very first import). Accordingly,
|
||||||
the following lines should be to your existing import lines in
|
add the following lines to your existing imports in `flaskr.py`::
|
||||||
`flaskr.py`::
|
|
||||||
|
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue