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 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.
LICENSE
Lesser GNU Public License
CHANGELOG
2.0.6 (2020-11-24)
Fix dependency to appy
2.0.5 (2020-11-24)
Add python 3.8 support
2.0.4 (2019-12-26)
Add Django 2.0 support
2.0.3 (2019-12-26)
(No change)
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-appypod-2.0.6.tar.gz
.
File metadata
- Download URL: django-appypod-2.0.6.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b8fb54f73b4536be335e9321e29cbe2707cceab580ea19f1dded162513e8af |
|
MD5 | 7c2921f6c71ee01f08cbb8bbbbb98925 |
|
BLAKE2b-256 | 7516ae76442c705dcaa80dc2fea6719fb1be9c41f890af85039bdaa92ffb75d8 |