e205a5c3eeab

HAY GUYS I KNOW ABOUT RENDER()
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 30 Jun 2011 10:40:29 -0400
parents f2cf538fa1c2
children fb6ff76d6105
branches/tags (none)
files content/blog/2011/06/django-advice.html

Changes

--- a/content/blog/2011/06/django-advice.html	Thu Jun 30 09:58:28 2011 -0400
+++ b/content/blog/2011/06/django-advice.html	Thu Jun 30 10:40:29 2011 -0400
@@ -834,6 +834,9 @@
 
 Less typing `context_instance=...` over and over, and less syntax to remember.
 
+Yes, I know about Django 1.3's `render` shortcut.  You have to type `request` every
+single time with `render`, so the `render_to` decorator still wins.
+
 ### The ajax\_request Decorator
 
 The `ajax_request` decorator is like `render_to` for AJAX requests.  You simply