On Mon, 2008-01-07 at 20:28 -0600, Michael Hipp wrote:
[...]
> Is it really necessary to complicate every 'view' method by appending 
> 'context_instance=RequestContext(request)' to the render_to_response 
> call? This seems totally boilerplate and a violation of DRY.

Write your own shortcut function if you want to. You'll still need to
pass it the request as an argument, so you're saving 11 characters of
typing (you don't need to write "context_instance=" in any case) each
time and costing yourself a function call. Choose whichever works for
you.

Malcolm

-- 
I just got lost in thought. It was unfamiliar territory. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to