Skip to main content

Tag each page on your website with an indicator text or image

Project description

Django site tag

Django site tag allows you to set 'tags' on each page of your website to indicate current environment, developemnt stages, or whatever else you may want to use such a feature for.

Demo Image


pip install git+


After installation, add the django_site_tag app name to the list of installed apps.

    ... # django apps


    ... # custom apps

Add the site tag middleware to the middleware list.

    ... # django middleware list


    ... # custom middleware list


Customization options are provided via django settings. Set any of the following values to add customizations to your site tags.

Setting Name Type Description Example Value
SITE_TAG_POSITION string space-separated css position values in the order: top, right, bottom ,left representing the position of the site tag '15px 0px 0px 15px'
SITE_TAG_TEXT string The text to be written on the tag 'TEST'
SITE_TAG_TEXT_STYLE string The css style to be applied to the text 'padding: 10px;'
SITE_TAG_TEXT_BORDER_STYLE string The css style to be applied to the border around the text '2px dashed #ff0000;'
SITE_TAG_IMAGE string The url to the image file to be used instead of text '/static/images/tag.jpg'

Project details

Download files

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

Files for django-site-tag, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_site_tag-0.0.1-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-site-tag-0.0.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page