Generate recommendations in Django.
Project description
Use pyrecommend in Django projects.
django_recommend/ is the actual Django app intended for use in projects.
simplerec/ is a Django project used for testing.
Quickstart
Add django_recommend to your INSTALLED_APPS, and run python manage.py migrate.
In your views, call django_recommend.set(user, object, score) to start recording user scores. (Currently this is assumed to be implicit feedback).
In your templates, use {% load django_recommend %} and {{ obj|similar_objects }} to show similar objects to visitors. This filter returns a list, so you may also do, for example:
{% with similar_products as product|similar_objects %} {% if similiar_products %} <h2>Other users also liked:</h2> <ul> {% for product in similar_products %} <li><a href=
"{{ product.get_absolute_url }}">{{ product }}</a></li> {% endfor %} </ul> {% endif %} {% endwith %}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-recommend-0.1.dev2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee129d255b7e1894af29834f6300f1bbc346922a2b7ad66ff133123090974ffd |
|
MD5 | 5bab55afd4b104ddf9b263d42c883cad |
|
BLAKE2b-256 | 39de61e4d817e2ead8bce3852606f3890cced06c7afbf31ba7aa035c59876abc |
Close
Hashes for django_recommend-0.1.dev2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c084378914dc89747fea6f5f9c5bae00d419f0a10b148a6ffcef3b284b1190b4 |
|
MD5 | bbc00a49375540dab6a785d584f82f91 |
|
BLAKE2b-256 | b21112c01e8708ace5127785b596f56c797e8144632f420acdf42cbfb5059df0 |