Skip to main content

django-appypod allows to serve OpenDocument Text files (.odt) from templates and contexts, using Appy POD 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 for designing your OpenDocument templates.

AUTHORS

makinacom

LICENSE

  • Lesser GNU Public License

CHANGELOG

2.0.2 (2019-11-25)

  • Fix dependency to appy (use Python 3 version)

2.0.1 (2019-11-18)

  • Fix setup.py

2.0.0 (2018-05-07)

  • Move to Python 3

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 files for django-appypod 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-appypod 2.0.2
File Size Uploaded
django-appypod-2.0.2.tar.gz 6.1 kB Details

Release files / django-appypod-2.0.2.tar.gz

Download URL django-appypod-2.0.2.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
266e03244942f7c93b8350a28bb7d046f07f3f30a0083da7a7e4554fc37b6007
BLAKE2b-256 checksum
How to use checksums
4d78a77f5452614d3876b0ae83b5e2d65c4fb1ea7a4262926294f8d6922d7889
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

Release history Release notifications | RSS feed

2.0.7

1 release file

2.0.6

1 release file

2.0.5

1 release file

2.0.4

1 release file

This release

2.0.2 This release

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.0.0

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page