Browse Source

Added a missing module to import statement

pull/1965/head
Ioan Vancea 9 years ago
parent
commit
55f9af72e3
  1. 2
      docs/patterns/deferredcallbacks.rst

2
docs/patterns/deferredcallbacks.rst

@ -60,7 +60,7 @@ At any time during a request, we can register a function to be called at the
end of the request. For example you can remember the current language of the end of the request. For example you can remember the current language of the
user in a cookie in the before-request function:: user in a cookie in the before-request function::
from flask import request from flask import request, after_this_request
@app.before_request @app.before_request
def detect_user_language(): def detect_user_language():

Loading…
Cancel
Save