Coder Social home page Coder Social logo

kimjjeonghwa80 / django-flipbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitlabstudio/django-flipbook

0.0 0.0 0.0 1.98 MB

A reusable Django app that displays a gallery in a flipbook format.

License: MIT License

Python 78.46% CSS 6.79% JavaScript 14.74%

django-flipbook's Introduction

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

django-flipbook's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.