views:

22

answers:

1

Hi.

I want to send a user to a page on my site that prompts him to upgrade to a more recent browser if they are using ie6 or lower.

How can this be achieved in Django?

+1  A: 

You want to use Middleware. Specifically, you want to sniff the browser agent in the process_request of your middleware, and return a HttpResponseRedirect if the browser agent indicates IE6.

There's a snippet that should get you started here. Do post a comment if you need help with it!

Dominic Rodger