Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Browser detection (including browser upgrade notices) for Django

Project Description
h1. django-badbrowser readme

h2. Installation

To install django-badbrowser:

# Install with easy_install/pip/whatever
# Add @django_badbrowser.middleware.BrowserSupportDetection@ to the @MIDDLEWARE_CLASSES@ setting
# Add @django_badbrowser@ to your @INSTALLED_APPS@ setting
# Specify the @BADBROWSER_REQUIREMENTS@ setting (see below for details and additional settings)
# Copy/sym-link the @django_badbrowser/media/django-badbrowser/@ directory into your media directory

h2. Config options


A list of any specific browser restrictions. Browsers listed here with versions lower than the specified version numbers will be shown the "Unsupported web browser" message. Any browsers not listed here will be free to access the site as normal, as will any clients which do not specify a user agent.


("firefox", "3.0"),
("chrome", "3.0"),
("microsoft internet explorer", "8"),
("opera", None), # None indicates no support for the given browser, whatever the version


A list of browsers to suggest to the user on the "Unsupported web browser" page.


<pre>BADBROWSER_SUGGEST = ("firefox", "chrome", "safari", "opera", "microsoft internet explorer")</pre>


The base template which should be extended in the rendering of the "Unsupported web browser" page. This page will probably need to have blocks for "extra_head" (within the head tag) and "content" (within the body tag)


<pre>BADBROWSER_BASE_TEMPLATE = "myapp/base.html"</pre>
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-badbrowser-1.0.7.tar.gz (34.1 kB) Copy SHA256 Checksum SHA256 Source Mar 16, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting