Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Add pypagedlist support for Flask

Project Description

Flask-PagedList bundles features from pypagedlist into a blueprint named ‘PagedList’.

Installation

Flask-PagedList can be installed using pip from PyPI. virtualenv is highly recommended:

pip install -U flask-pagedlist

For development, instead, clone the github repository, and use:

python setup.py develop  # Or, pip install -e .

Example Project

Screenshots

Traditional

AJAX

Run

Here is a simple description about how to run the demo project:

# 1. Clone this git repo in order to get the example
git clone https://github.com/timonwong/flask-pagedlist.git
cd flask-pagedlist

# 2. Install flask-pagedlist
pip install -U flask-pagedlist

# 3. Install dependencies for the example
pip install -U -r example-requirements.txt

# 4. Start the example project
python run_example.py

Usage

Basic usage

Here is an example:

from flask_pagedlist import PagedList

PagedList(app)

Static resources

pagedlist_static_for is recommended for requiring static resources for Flask-PagedList in templates:

def pagedlist_static_for(filename, use_minified=None):
    """Resource finding function, also available in templates.

    :param filename: File to find a URL for.
    :param use_minified': If set to ``True``/``False``, use/don't use
                          minified. If ``None``, use the default setting
                          from ``PAGEDLIST_USE_MINIFIED``.
    :return: A URL.
    """

Configuration

PAGEDLIST_USE_MINIFIED

PAGEDLIST_PREFIX

Release History

Release History

This version
History Node

0.2.1

History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Flask_PagedList-0.2.1-py2.py3-none-any.whl (10.1 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Feb 13, 2015
Flask-PagedList-0.2.1.zip (436.8 kB) Copy SHA256 Checksum SHA256 Source Feb 13, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting