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
h3. BADBROWSER_REQUIREMENTS
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.
Example:
<pre>BADBROWSER_REQUIREMENTS = (
("firefox", "3.0"),
("chrome", "3.0"),
("microsoft internet explorer", "8"),
("opera", None), # None indicates no support for the given browser, whatever the version
)</pre>
h3. BADBROWSER_SUGGEST
A list of browsers to suggest to the user on the "Unsupported web browser" page.
Example:
<pre>BADBROWSER_SUGGEST = ("firefox", "chrome", "safari", "opera", "microsoft internet explorer")</pre>
h3. BADBROWSER_BASE_TEMPLATE
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)
Example:
<pre>BADBROWSER_BASE_TEMPLATE = "myapp/base.html"</pre>
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
h3. BADBROWSER_REQUIREMENTS
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.
Example:
<pre>BADBROWSER_REQUIREMENTS = (
("firefox", "3.0"),
("chrome", "3.0"),
("microsoft internet explorer", "8"),
("opera", None), # None indicates no support for the given browser, whatever the version
)</pre>
h3. BADBROWSER_SUGGEST
A list of browsers to suggest to the user on the "Unsupported web browser" page.
Example:
<pre>BADBROWSER_SUGGEST = ("firefox", "chrome", "safari", "opera", "microsoft internet explorer")</pre>
h3. BADBROWSER_BASE_TEMPLATE
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)
Example:
<pre>BADBROWSER_BASE_TEMPLATE = "myapp/base.html"</pre>
Metadata
Release files for django-badbrowser 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-badbrowser-1.0.7.tar.gz | 34.1 kB | Without provenance | Details |
Release files / django-badbrowser-1.0.7.tar.gz
| Download URL | django-badbrowser-1.0.7.tar.gz |
|---|---|
| Size | 34.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
636facc86c0d951f5b34e2e6baf1d7e31e83def2531d3252c460d023667a35e5
|
|
BLAKE2b-256 checksum How to use checksums |
ddcc3ad5d3285ead973e43aa3442576a6845ae6f4c76f9ec744a2e22381d86ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-badbrowser 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.