1. David Chambers
  2. Mango


David Chambers  committed e800b02

Updated `html_response` to have it include the request in the `RequestContext`
it creates. As a result, the "request" context processor need not be present

Comments (0)

Files changed (1)

File utils.py Modified

View file
  • Ignore whitespace
  • Hide word diff
     if dict_ is None:
         dict_ = {}
+    # provide access to the request (without relying upon a context processor)
+    dict_['request'] = request
     # make Mango's settings accessible to templates
     for key, value in mango.settings.__dict__.items():
         if not key.startswith('_'):