Many web sites offer faceted browsing such that a series of categories
can be selected to narrow a large set of records down to a few (or
one). Such interfaces often show how many records match the various
category values, which sometimes helps direct the search. Likewise,
since only valid combinations of categories values are shown and
selectable, the problem problem of constraints with zero results are
mitigated. You can see this in action on lots of shopping sites:
Amazon's page on diamond wedding rings (http://www.amazon.com/gp/
search/ref=sr_nr_n_2?rh=n%3A3367581%2Ck%3Adiamonds%2Cn%3A!3880591%2Cn
%3A3887251&bbn=3880591&keywords=diamonds&ie=UTF8&qid=1257740168&rnid=3880591)
is a good example.

I'm an intermediate-level Django user, and i'm trying to conceive how
to architect a faceted browsing application in Django. I can see
conceptually how a combination of constraints specified in the
interface could translate into a series of filter statements on a
model, and i can see how, with some constraints in place, the
remaining values and the number of records matching them could be
computed and presented.

But I'm less sure how to provide a RESTful interface (since any of
several constraints can be selected independently) in an efficient
manner, or how to work out the template details. So i'm looking for
some direction.

Are there any Django sites out there already that use an approach like
this? Or suggestions as to how to architect one?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to