https://github.com/ccnmtl/django-pagetree-epub
epub export for pagetree
https://github.com/ccnmtl/django-pagetree-epub
Last synced: 3 months ago
JSON representation
epub export for pagetree
- Host: GitHub
- URL: https://github.com/ccnmtl/django-pagetree-epub
- Owner: ccnmtl
- Created: 2017-02-22T17:27:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T16:16:41.000Z (over 2 years ago)
- Last Synced: 2025-09-02T08:53:01.745Z (9 months ago)
- Language: Python
- Homepage: https://pypi.org/project/django-pagetree-epub/
- Size: 50.8 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
- Changelog: CHANGES.txt
Awesome Lists containing this project
README
[](https://github.com/ccnmtl/django-pagetree-epub/actions)
[](https://coveralls.io/github/ccnmtl/django-pagetree-epub?branch=master)
epub export library for django-pagetree
## Installation
```
$ pip install django-pagetree-epub
```
Add `pagetreeepub` to your `INSTALLED_APPS`.
The `epubbuilder` library uses Genshi templates for a few things and
is unaware of Django's template finding functionality. I really hate
this and will be ripping that out and fixing this ASAP. In the
meantime, you have two options:
1) copy the `pagetreeepub/templates/epub` directory into your app and
point `EPUB_TEMPLATE_DIRECTORY` at it.
2) ensure that you pip install to a known location and set
`EPUB_TEMPLATE_DIRECTORY` to that.
Add the following settings:
* `EPUB_ALLOWED_BLOCKS` - list of pageblocks that will be allowed in
the published epub. Other blocks are silently ignored.
* `EPUB_TITLE` - title for the epub
* `EPUB_CREATOR` - creator field
* `EPUB_PUBLICATION` - publication date