<Include a description of your project>
Project description
========================
django-pdfy
========================
django-pdf lets you to render any view as pdf, css and images are also available
in your templates.
.. image::
https://secure.travis-ci.org/rochapps/django-pdf.png
:alt: Build Status
:target: https://secure.travis-ci.org/rochapps/django-pdf
Requirements
============
1. pisa>=3.0.33
2. pyPdf>=1.13
3.reportlab>=2.6
4. html5lib>=0.95
5. mock (for testing)
Quick start
===========
1. Define ``STATIC_ROOT`` and ``STATIC_URL`` in your settings.py file.
2. Subclass RenderPDF, set the ``template_name`` attribute.
For example, in myapp/views.py::
from myapp.models import Transaction
from pdf.views import RenderPDF
from django.views.generic import ListView
class TransactionListView(RenderPDF, ListView):
# base_queryset is a queryset that contains all the objects that are
# accessible by the API:
template_name = 'mydpf.html'
model = Transaction
In myapp/urls.py::
from myapp.views import TransactionListView
urlpatterns = patterns('',
url(r'^transactions/$', TransactionListView.as_view()),
)
Running the Tests
------------------------------------
You can run the tests with via::
python setup.py test
or::
python runtests.py
License
--------------------------------------
django-secure-input is released under the BSD License. See the
`LICENSE <https://github.com/rochapps/django-pdf/blob/master/LICENSE>`_ file for more details.
Contributing
--------------------------------------
If you think you've found a bug or are interested in contributing to this project
check out `django-secure-input on Github <https://github.com/rochapps/django-pdf>`_.
Development sponsored by `RochApps, LLC
<http://www.rochapps.com/services>`_.
django-pdfy
========================
django-pdf lets you to render any view as pdf, css and images are also available
in your templates.
.. image::
https://secure.travis-ci.org/rochapps/django-pdf.png
:alt: Build Status
:target: https://secure.travis-ci.org/rochapps/django-pdf
Requirements
============
1. pisa>=3.0.33
2. pyPdf>=1.13
3.reportlab>=2.6
4. html5lib>=0.95
5. mock (for testing)
Quick start
===========
1. Define ``STATIC_ROOT`` and ``STATIC_URL`` in your settings.py file.
2. Subclass RenderPDF, set the ``template_name`` attribute.
For example, in myapp/views.py::
from myapp.models import Transaction
from pdf.views import RenderPDF
from django.views.generic import ListView
class TransactionListView(RenderPDF, ListView):
# base_queryset is a queryset that contains all the objects that are
# accessible by the API:
template_name = 'mydpf.html'
model = Transaction
In myapp/urls.py::
from myapp.views import TransactionListView
urlpatterns = patterns('',
url(r'^transactions/$', TransactionListView.as_view()),
)
Running the Tests
------------------------------------
You can run the tests with via::
python setup.py test
or::
python runtests.py
License
--------------------------------------
django-secure-input is released under the BSD License. See the
`LICENSE <https://github.com/rochapps/django-pdf/blob/master/LICENSE>`_ file for more details.
Contributing
--------------------------------------
If you think you've found a bug or are interested in contributing to this project
check out `django-secure-input on Github <https://github.com/rochapps/django-pdf>`_.
Development sponsored by `RochApps, LLC
<http://www.rochapps.com/services>`_.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-pdfy-0.1.1.tar.gz
(4.5 kB
view details)
File details
Details for the file django-pdfy-0.1.1.tar.gz
.
File metadata
- Download URL: django-pdfy-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e024f09fc58b98966aaa08f306407594a96bd028776b0f9ab7ff6f3683ed12b |
|
MD5 | ae6e76e61e8a07027767de921c2729cc |
|
BLAKE2b-256 | 245086bd3a4e9aa3c68a173cf65e5b3d9a2f9340a137e1fb9f5efb570586819b |