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.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e81680bc6ef0559d11db2e3049e1d40968d320264d2da0e674e06476e31f0adf |
|
MD5 | edc9792951a2dd1e79631a01872ac73b |
|
BLAKE2b-256 | 45729217c206e3b30d951831bb7bdbc0ed300a21622e99e209bbea76d1e7f447 |
Close
Hashes for django_recommend-0.1.dev1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dc3ba07aba36c12a6587f655c141ecfdf21eb9bba8cc1be60d02f77a4cadae4 |
|
MD5 | 29eaa5b9cf3f1b77d6b33bc3381ac43a |
|
BLAKE2b-256 | ff6972c2c2319cd95f7994e20878acfeb567833ee5df773332e302c91a1795ae |