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 achiev开发者_高级运维ed in Django?
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!
精彩评论