Skip to main content

Django Flipbook

A reusable Django app that displays an image gallery as a flipbook.

Installation

To get the latest stable release from PyPi

$ pip install django-flipbook

To get the latest commit from GitHub

$ pip install -e git+git://github.com/bitmazk/django-flipbook.git#egg=flipbook

TODO: Describe further installation steps (edit / remove the examples below):

Add flipbook to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'flipbook',
)

Add the flipbook URLs to your urls.py

urlpatterns = patterns('',
    ...
    url(r'^flipbook/', include('flipbook.urls')),
)

Don’t forget to migrate your database

./manage.py migrate flipbook

Usage

Basically, there is a Flipbook and its (html) pages. You can edit them inline.

Make sure to install django-summernote, which provides the great summernote WYSIWYG editor. Django-App: https://github.com/lqez/django-summernote Editor: http://hackerwins.github.io/summernote/

All flipbooks are viewed in a general list view. You can also gather flipbooks in different categories and view them in seperated lists.

You will definitely want to overwrite the templates and add your favourite flipbook jquery plugin, so I only added simple templates and an example plugin. Get the plugin here: http://tympanus.net/codrops/2012/09/03/bookblock-a-content-flip-plugin/ Thx to Tympanus so far.

Please take a look at the models.py to check the models for their fields. There are a lot of possibilities to improve your templates. If you need any other fields or functions feel free to send a pull request =)

Settings

FLIPBOOK_BOOK_TYPE

Default: (‘default’, _(‘default’)), )

Tuple to define different book types. This can be helpful, if you want to distinguish different book formats etc.

FLIPBOOK_PAGE_TYPE

Default: (‘default’, _(‘default’)), )

Tuple to define different page types. This can be helpful, if you want to distinguish pages in your template or if you want to add special css classes etc.

FLIPBOOK_DISABLE_LISTS

Default: False

Boolean to disable list views.

Contribute

If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 django-flipbook
$ python setup.py install
$ pip install -r dev_requirements.txt

$ git co -b feature_branch master
# Implement your feature and tests
$ git add . && git commit
$ git push -u origin feature_branch
# Send us a pull request for your feature branch

Metadata

Release files for django-flipbook 0.3.7

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-flipbook 0.3.7
File Size Uploaded Provenance Actions
django-flipbook-0.3.7.tar.gz 38.8 kB Without provenance Details for django-flipbook-0.3.7.tar.gz

Release files / django-flipbook-0.3.7.tar.gz

Download URL django-flipbook-0.3.7.tar.gz
Size 38.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8cb13e4ce8f6039eeaf2b4b30efb48ca8f6151d6fc52359c6ebba8e84e467c1f
BLAKE2b-256 checksum
How to use checksums
4825d3199abcaed2b07608491643d6a8cf7b78dacea33fad3dd6e7a3f6c6f2dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-flipbook 0.3.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.

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