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

Django App for adding the threatmetrix script tag

Project Description

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 History

Release History

This version
History Node

0.0.1

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-threatmetrix-0.0.1.tar.gz (5.6 kB) Copy SHA256 Checksum SHA256 Source Apr 12, 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