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

Responsive ads using mediaquery for dfp.

Project Description

Django responsive DFP


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


* Django >= 1.3


pip install django-responsive-dfp

add the plugin to ``INSTALLED_APPS``::


define settings for your 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),)


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

{% load dfp %}

then you simply call the tag with the slot name

{% dfp "header" %}

Release History

This version
History Node

History Node

History Node

History Node

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(112.1 kB) Copy SHA256 Hash SHA256
Source None Nov 20, 2013

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting