========================
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-pdfy.png
:alt: Build Status
:target: https://secure.travis-ci.org/rochapps/django-pdf
Requirements
============
1. django>=1.3
2. xhtml2pdf==0.0.5
5. mock (for testing)
Install
=======
Use pip to install::
pip install django-pdfy
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 pdfy.views import RenderPDF
from django.views.generic import ListView
class TransactionListView(RenderPDF, ListView):
template_name = 'mypdf.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-pdfy on Github <https://github.com/rochapps/django-pdfy>`_.
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-pdfy.png
:alt: Build Status
:target: https://secure.travis-ci.org/rochapps/django-pdf
Requirements
============
1. django>=1.3
2. xhtml2pdf==0.0.5
5. mock (for testing)
Install
=======
Use pip to install::
pip install django-pdfy
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 pdfy.views import RenderPDF
from django.views.generic import ListView
class TransactionListView(RenderPDF, ListView):
template_name = 'mypdf.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-pdfy on Github <https://github.com/rochapps/django-pdfy>`_.
Development sponsored by `RochApps, LLC
<http://www.rochapps.com/services>`_.
Metadata
Release files for django-pdfy 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_pdfy-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / django_pdfy-0.2.3-py3-none-any.whl
| Download URL | django_pdfy-0.2.3-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0acb0754c0893c8f96b12e38c94a84e19b4bae768b8c11937fc4cb715f22c8e
|
|
BLAKE2b-256 checksum How to use checksums |
42fd4d47c62132434b9ccf1a4cacb886fada17ae0192d2e0d601ffdcab8cd969
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
|