On Thu, 2008-11-13 at 17:03 -0500, Jeff Gentry wrote: > > Another piece of info, in case it's useful here - the page does *not* > render on the first view call, it's only after the second call that the > page will render. I don't think it's even pulling up the template until > the second go-around, as a test I put some intentionally bad template code > in a template. On the first time the view was called, nothing happened > but on the second one I got the TemplateSyntaxError.
Quoting from the book of "if you hear hoofbeats, think horses, not zebras": This obviously isn't normal Django behaviour and since calling views is easily the most common operation in Django, it's safe to assume that any breakage here in Django would have been noticed by other people. Which means the problem is almost certainly in your code. None of which you have shown us and we can't guess what it might contain. Please create a very small example -- say a single URL pattern and a view with one line it calling render_to_response() that demonstrates the issue reliably. Then we might be able to work out what's going on. I'm not entirely convinced by your diagnosis of rendering, since if the browser was requesting the page twice, you might well not see the first rendering at all. You could try printing things like the output of traceback.print_stack() in your view to see if it's called the same way both times, for example. In any case, reduce you problem to the shortest possible example so that you can show us the code. Although, typically, reducing it to the shortest possible example more or less naturally reveals what the problem is in the first place, because you end up seeing which line is critical to triggering the issue at hand. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---