commit
0f3bc38a18
2 changed files with 2 additions and 3 deletions
|
|
@ -44,8 +44,7 @@ you can have more than one application in the same Python process.
|
||||||
|
|
||||||
So how does the code find the “right” application? In the past we
|
So how does the code find the “right” application? In the past we
|
||||||
recommended passing applications around explicitly, but that caused issues
|
recommended passing applications around explicitly, but that caused issues
|
||||||
with libraries that were not designed with that in mind for libraries for
|
with libraries that were not designed with that in mind.
|
||||||
which it was too inconvenient to make this work.
|
|
||||||
|
|
||||||
A common workaround for that problem was to use the
|
A common workaround for that problem was to use the
|
||||||
:data:`~flask.current_app` proxy later on, which was bound to the current
|
:data:`~flask.current_app` proxy later on, which was bound to the current
|
||||||
|
|
|
||||||
|
|
@ -377,7 +377,7 @@ package it's actually inside your package:
|
||||||
/hello.html
|
/hello.html
|
||||||
|
|
||||||
For templates you can use the full power of Jinja2 templates. Head over
|
For templates you can use the full power of Jinja2 templates. Head over
|
||||||
to the the official `Jinja2 Template Documentation
|
to the official `Jinja2 Template Documentation
|
||||||
<http://jinja.pocoo.org/2/documentation/templates>`_ for more information.
|
<http://jinja.pocoo.org/2/documentation/templates>`_ for more information.
|
||||||
|
|
||||||
Here is an example template:
|
Here is an example template:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue