Skip to main content

django-sys-indicator

pre-commit.ci status https://img.shields.io/github/license/marksweb/django-sys-indicator https://img.shields.io/github/issues/marksweb/django-sys-indicator

A visual indicator of what environment/system you’re using in django.

system indicator examples

To install:

  • Add "django_sys_indicator.apps.DjangoSysIndicatorConfig" to your INSTALLED_APPS

  • Add "django_sys_indicator.middleware.SystemIndicatorMiddleware" to your MIDDLEWARE

Configuration settings and their defaults

SYSTEM_INDICATOR_ENABLED = False
SYSTEM_INDICATOR_LABEL = "localhost"
SYSTEM_INDICATOR_COLORS = {
    # Format here is colour, border colour
    "red": ("#c50000", "#daa"),
    "blue": ("#006fc4", "#aad"),
    "green": ("#009e00", "#ada"),
    "purple": ("#800080", "#dad"),
    "orange": ("#ff7700", "#ffb57d"),
}

SYSTEM_INDICATOR_COLOR = "red"

SYSTEM_INDICATOR_EXCLUSIONS = []

To exclude paths, include regex in SYSTEM_INDICATOR_EXCLUSIONS

import re

SYSTEM_INDICATOR_EXCLUSIONS = [
    re.compile("^/[^/]+/admin/.\*$"),
]

Example of a localhost indicator in admin;

system indicator admin example

Metadata

Release files for django-sys-indicator 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sys-indicator 2.2.0
File Size Uploaded Provenance Actions
django_sys_indicator-2.2.0.tar.gz 6.1 kB Without provenance Details for django_sys_indicator-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-sys-indicator 2.2.0
File Interpreter ABI Platform Actions
django_sys_indicator-2.2.0-py3-none-any.whl Python 3 none any Details for django_sys_indicator-2.2.0-py3-none-any.whl

Total release size: 12.5 kB

Release files / django_sys_indicator-2.2.0.tar.gz

Download URL django_sys_indicator-2.2.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
551b0b5e1871d5dca84d2d63ed15a9de87fbb9f89aaf5341b43dd5ede7c4addd
BLAKE2b-256 checksum
How to use checksums
b7670f8690da9ff43da773dec6160ead5c9b330e15c18fd6aadb92036e1480a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / django_sys_indicator-2.2.0-py3-none-any.whl

Download URL django_sys_indicator-2.2.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c46237181985ecec63b2d16fbc3bb05c4ee265ffb6c3c8176f91d5164181fc2a
BLAKE2b-256 checksum
How to use checksums
556e29687e5f1ddaef0844d6ed9c28218d858e826ad7cc404fd17c1f21041eb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Security for django-sys-indicator 2.2.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page