Skip to main content
Django responsive DFP
======================

Description
-----------

The `django-responsive-dfp` package allows you to easily display responsive ads using dfp ans media-queries.

Dependencies
------------

* Django >= 1.3

Installation
------------

pip install django-responsive-dfp

add the plugin to ``INSTALLED_APPS``::

INSTALLED_APPS = (
...
'dfp',
...
)

define settings for your dfp slots

DFP_SLOTS = {
"header": {
"account" : 12345678,
"slot" : "Leaderboard_Header",
"responsive" : [
{
"media_query" : "(min-width: 1248px)",
"sizes" : ((1150,120),)
},
{
"media_query" : "(min-width: 948px) and (max-width: 1248px)",
"sizes" : ((640,120),)
}
]
}
}

Usage
------------

In your templates, you need to load ``dfp``:

...
{% load dfp %}
...

then you simply call the tag with the slot name

{% dfp "header" %}

Metadata

Release files for django-responsive-dfp 0.1.2.4

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-responsive-dfp 0.1.2.4
File Size Uploaded Provenance Actions
django-responsive-dfp-0.1.2.4.tar.gz 112.1 kB Without provenance Details for django-responsive-dfp-0.1.2.4.tar.gz

Release files / django-responsive-dfp-0.1.2.4.tar.gz

Download URL django-responsive-dfp-0.1.2.4.tar.gz
Size 112.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd3d79cdc62cc1d0554a536858c3d14a78bd578d6373e710546442d73a22b801
BLAKE2b-256 checksum
How to use checksums
a10de9699d3e84af2879d866df0106ff588d8fc6b47e7d8ea6bb70674999fb7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-responsive-dfp 0.1.2.4

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