Skip to main content

django-threatmetrix makes it easy to apply the in your django application. You just need to do the following.

Installation

  1. Install django-threatmetrix using easy_setup or pip:

    pip install django-threatmetrix
  2. add like_button to your INSTALLED_APPS in your django settings file:

    INSTALLED_APPS = (
        # all
        # other
        # apps
        'threatmetrix',
    )
  3. Add “THREATMETRIX_ORG_ID” setting to your django settings file with your threatmetrix org id.

    in settings.py:

    THREATMETRIX_ORG_ID = "Your org id"
    THREATMETRIX_URL = "https://h.online-metrix.net" # Optional
    THREATMETRIX_JS_ENABLED = True  # Optional
  4. Add the template tag code into your base template before the body tag.

    Where you need the threatmetrix tag:

    {% load threatmetrix %}

    Where ever you want your threatmetrix tag use:

    {% threat_metrix_tags object.value %}

Release files for django-threatmetrix 0.0.1

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-threatmetrix 0.0.1
File Size Uploaded
django-threatmetrix-0.0.1.tar.gz 5.6 kB Details

Release files / django-threatmetrix-0.0.1.tar.gz

Download URL django-threatmetrix-0.0.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3bfa41918cd0de2cd027fbf1926263d26458e7810b4942a5a89db76c66821560
BLAKE2b-256 checksum
How to use checksums
aa1f3f597016ebe861c52479dffd7166516fb4a8fea4a1048beb50d43ae2628b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

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