Yes, sorry, I missed the return, was hastily typed as an example. Hadn't seen direct_to_template, that does indeed seem like a good way to go. Thanks for the pointer :)
On 6/27/07, SmileyChris <[EMAIL PROTECTED]> wrote: > > > On Jun 27, 8:46 pm, "Paul Bowsher" <[EMAIL PROTECTED]> wrote: > > No, this is meant to go at the end of a long view function > > def index(request): > > # Lots of code > > render_to_response_with_req(request, 'home/index.html', {'a': > 'dict'}) > > Firstly, you should be `return`ing this request. ;) > > Secondly, it looks like the direct_to_template function does exactly > this (albeit with a tiny bit of overhead in checking for and calling > callable context items). > > > > > -- Paul Bowsher --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---