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!

Template tags for Google DFP.

Project Description

Django Google DFP

Django Google DFP provides template tags for inserting [Google DFP]( ad tags.


Run `pip install django-google-dfp`

Add `google_dpf` to your `INSTALLED_APPS` setting:


Template Tags

Inserts the JavaScript for serving Google DFP ads.
*This must go inside the head*

Inserts the code where the ad will display. It takes an ad unit as an argument. I needs to be in the format `[identifier]_[width]x[height]`.

{% load dfp_tags %}
<title>My Site</title>
{% ad_header %}
<h1>My Site</h1>
{% ad_tag 'MYSITE_728x90' %}
<p>My site's content.</p>
{% ad_tag 'MYSITE_300x200' %}

Release History

This version
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
(7.6 kB) Copy SHA256 Hash SHA256
Source None Nov 2, 2012

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate