On Sun, 2007-03-18 at 19:48 +0000, [EMAIL PROTECTED] wrote: > I've got multiple web servers behind a load balancer, and I'd like to > be able to stick an HTML comment in the template so I can see which > web server handled the request/response. > > Is there an easy way to do this?
Assuming each server has a unique hostname, you could write some middleware that puts the hostname into the request context (just like SessionMiddleware does) and then insert that into your template. It's exactly equivalent to accessing, say, the current user when using the SessionMiddleware, except you have to write a middleware (or template context processor). Shouldn't be too hard. 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---

