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.7 (2021-04-12)
Use upstream appy (it supports now Python3)
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.
Metadata
Release files for django-appypod 2.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-appypod-2.0.7.tar.gz | 6.5 kB | Without provenance | Details for django-appypod-2.0.7.tar.gz |
Release files / django-appypod-2.0.7.tar.gz
| Download URL | django-appypod-2.0.7.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecaf213aba1f699b4212e1c596eb8f6f54732d62922e2b86516afa05d9c3807b
|
|
BLAKE2b-256 checksum How to use checksums |
6c8002388b845f16c5c26e42226cc6f4a029a86fba6ad601a1cfd5ad214aef12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Security for django-appypod 2.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.