Skip to content

Commit 10c34e6

Browse files
committed
Reword 0.9 upgrade doc, thanks to plaes on #pocoo.
1 parent b885edf commit 10c34e6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/upgrading.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ the old behavior, you can add it easily by subclassing Flask::
3434
return self.response_class(*rv)
3535
return Flask.make_response(self, rv)
3636

37-
If you have an extension that was using :data:`~flask._request_ctx_stack`
38-
before, please consider changing to :data:`~flask._app_ctx_stack` if it
39-
makes sense for your extension. This will for example be the case for
40-
extensions that connect to databases. This will allow your users to
41-
easier use your extension with more complex use cases outside of requests.
37+
If you maintain an extension that was using :data:`~flask._request_ctx_stack`
38+
before, please consider changing to :data:`~flask._app_ctx_stack` if it makes
39+
sense for your extension. For instance, the app context stack makes sense for
40+
extensions which connect to databases. Using the app context stack instead of
41+
the request stack will make extensions more readily handle use cases outside of
42+
requests.
4243

4344
Version 0.8
4445
-----------

0 commit comments

Comments
 (0)