Changeset 7130 for django/trunk/docs/templates_python.txt
- Timestamp:
- 02/18/08 17:43:12 (11 months ago)
- Files:
-
- django/trunk/docs/templates_python.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates_python.txt
r7020 r7130 396 396 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 397 397 398 **New in Django development version** 399 398 400 If ``TEMPLATE_CONTEXT_PROCESSORS`` contains this processor, every 399 401 ``RequestContext`` will contain a variable ``MEDIA_URL``, providing the … … 1015 1017 1016 1018 def render(self, context): 1017 t = template.load _template('small_fragment.html')1019 t = template.loader.get_template('small_fragment.html') 1018 1020 return t.render(Context({'var': obj}, autoescape=context.autoescape)) 1019 1021
