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!

<Include a description of your project>

Project Description


django-pdf lets you to render any view as pdf, css and images are also available
in your templates.

.. image::
:alt: Build Status

1. django>=1.3
2. xhtml2pdf==0.0.5
5. mock (for testing)

Use pip to install::

pip install django-pdfy

Quick start

1. Define ``STATIC_ROOT`` and ``STATIC_URL`` in your file.
2. Subclass RenderPDF, set the ``template_name`` attribute.

For example, in myapp/

from myapp.models import Transaction
from pdfy.views import RenderPDF
from django.views.generic import ListView

class TransactionListView(RenderPDF, ListView):
template_name = 'mypdf.html'
model = Transaction

In myapp/

from myapp.views import TransactionListView

urlpatterns = patterns('',
url(r'^transactions/$', TransactionListView.as_view()),

Running the Tests

You can run the tests with via::

python test




django-secure-input is released under the BSD License. See the
`LICENSE <>`_ file for more details.


If you think you've found a bug or are interested in contributing to this project
check out `django-pdfy on Github <>`_.

Development sponsored by `RochApps, LLC

Release History

This version
History Node


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
(4.6 kB) Copy SHA256 Hash SHA256
Source None Dec 27, 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