Skip to main content

Generic user wishlists for use with any Django model.

Project description

https://secure.travis-ci.org/dokterbob/django-wishlist.png?branch=master Code Health

Generic user wishlists for use with any Django model.

What is it?

Generic user wishlists for shops and the likes.

Status

Alpha. Don’t use it, unless you’re willing to fix issues. Will be released on PyPI as soon as tested in limited production.

Compatibility

Tested to work with Django 1.4, 1.5 and 1.6 and Python 2.6 as well as 2.7.

Requirements

Please refer to requirements.txt for an updated list of required packages.

Installation

The package is available

To install:

  1. Install the django-wishlist app:

    pip install -e git+https://github.com/dokterbob/django-wishlist.git#egg=django-wishlist
  2. In your Django settings:

    • Add ‘wishlist’ to INSTALLED_APPS.

    • Configure WISHLIST_ITEM_MODEL to the model used for wishlist items.

    • Optionally: add wishlist.context_processors.wishlist_items to your TEMPLATE_CONTEXT_PROCESSORS.

    For example:

    INSTALLED_APPS = [
        ...
        'wishlist'
        ...
    ]
    
    TEMPLATE_CONTEXT_PROCESSORS = [
        ...
        'wishlist.context_processors.wishlist_items',
        ...
    ]
    
    WISHLIST_ITEM_MODEL = 'my_webshop.Product'
  3. In urls.py add:

    (r'^/wishlist/', include('wishlist.urls')),
  4. Update the database:

    ./manage.py syncdb

    Note Migrations do not work as the model is dynamically configured.

Usage

Create a button to add an item to the wishlist simply from within your template.

At the top of the page add:

{% load wishlist_tags %}

And where you want the button add:

{% wishlist_add_form product %}

Where product is the product you want to add to the wishlist.

Tests

Tests for pull req’s and the master branch are automatically run through Travis CI.

License

This application is released under the GNU Affero General Public License version 3.

Project details


Download files

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

Source Distribution

django-wishlist-0.1.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

django_wishlist-0.1-py2-none-any.whl (24.2 kB view details)

Uploaded Python 2

File details

Details for the file django-wishlist-0.1.tar.gz.

File metadata

File hashes

Hashes for django-wishlist-0.1.tar.gz
Algorithm Hash digest
SHA256 90505248b52e4b9df759b153107d67943463f3643d4e74dc98e59f171ac3dc7a
MD5 b7b6ea60d7af67ab8057ee85aa9f6966
BLAKE2b-256 9c74d9a8895de19695f2a417afc78bdcfe8db3d733a1d5a0fda90dfb69dc3097

See more details on using hashes here.

File details

Details for the file django_wishlist-0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for django_wishlist-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 b51777ce9cf49ce035ab825a63802f1e26b7c3784848eb033ece82e7768f6488
MD5 63c0d5199edd2663123d99bf3249dbc3
BLAKE2b-256 53fd21f67695e8f5928e9669547da93af856d42f236cbc9f56e70b51b948b075

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page