This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Render OpenDocument files from templates, using Appy POD

Project Description
*django-appypod* allows to serve OpenDocument Text files (*.odt*) from templates
and contexts, using `Appy POD <appyframework.org>`_ framework.

=======
INSTALL
=======

::

pip install django-appypod


=====
USAGE
=====

In settings, add OdtTemplates template backend before DjangoTemplates one :

::

TEMPLATES = [
{
'BACKEND': 'djappypod.backend.OdtTemplates',
},
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
...
},
]



Using class-based generic views :

::

from django.view.generic.detail import DetailView

from djappypod.response import OdtTemplateResponse

class YourDocument(DetailView):
response_class = OdtTemplateResponse
template_name = "your/template.odt"


Using classic views functions :

::

def your_view(request):
response = OdtTemplateResponse(request, "your/template.odt", {
'title': 'Simple as hello ;)'
})
response.render()
return response


Follow instructions in `Appy POD documentation <http://appyframework.org/podWritingTemplates.html>`_
for designing your OpenDocument templates.

=======
AUTHORS
=======

* Mathieu Leplatre <mathieu.leplatre@makina-corpus.com>
* Gaël Utard <gael.utard@makina-corpus.com>
* Template loading based on Sébastien Fievet's presentation at DjangoCong 2011

|makinacom|_

.. |makinacom| image:: http://depot.makina-corpus.org/public/logo.gif
.. _makinacom: http://www.makina-corpus.com

=======
LICENSE
=======

* Lesser GNU Public License


=========
CHANGELOG
=========

1.0.0 (2017-01-14)
------------------

- Upgrade to Django 1.8


0.0.2 (2013-10-08)
------------------

* Safety check before deleting document
* Add Django and Appy in dependencies

0.0.1 (2012-09-11)
------------------

- Initial working version.
Release History

Release History

This version
History Node

1.0.0

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-appypod-1.0.0.tar.gz (5.9 kB) Copy SHA256 Checksum SHA256 Source Jan 14, 2017

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting