Skip to main content

django-external-urls

Captures clicks on external links, and invokes a callback (signal).

Useful for tracking outbound links.

pip install django-external-urls

Settings:

Add to settings.py:

INSTALLED_APPS = (
    'external_urls',
)

Add to url.py:

urlpatterns = patterns('',
    url(r'', include('external_urls.urls')),
)

Usage:

  1. The templates can be used as follows:

    {% load external_urls %}
    {% external_url object.website %}
    {% external_url "http://example.com/" %}
  2. Sends a Signal, external_link:

    from external_links.signals import external_click
    from django.dispatch import receiver
    
    @receiver(external_click)
    def my_callback(sender, url, ip):
        print("tracked click to {} from {}".format(url, ip))

Metadata

Release files for django-external-urls 0.3

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-external-urls 0.3
File Size Uploaded Provenance Actions
django-external-urls-0.3.tar.gz 2.5 kB Without provenance Details for django-external-urls-0.3.tar.gz

Release files / django-external-urls-0.3.tar.gz

Download URL django-external-urls-0.3.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
efbc20c7773486c57702042c2dccf9799bade21dee5ef8e8745a54dc2f13fb0d
BLAKE2b-256 checksum
How to use checksums
a2a5cc9b86e2abd2735fccbd13bac66902f9be0749183167f99438084f7cee3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-external-urls 0.3

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.

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file No provenance

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