Hi list,

I'm new to Django, but I've been writing web applications for years in
Perl and PHP. A popular feature these days, are of course tagging
things.

Tagging things is easy. You have a relational table, containing your
entry ID and a tag associated with it. This could easily be done with a
ManyToManyField() in Django. There is one problem, though.

I have a search functionality on my page, which ideally allows people
to write a list of tags, and retrieve the entries that has those
associated. Maybe I'm overlooking the obvious here--I hope I am--but
this has become increasingly difficult to implement. It's not as simple
as writing WHERE tag = 'foo' OR tag = 'bar'. That assumes that both
values are met in a single row/join.

I'd like some feedback on how this could be implemented, preferably in
native Django models. It's been the source of my frustration for days
now, and I sincerely hope this is not as heavy/daunting as it seems.

Thanks in advance.

PS: I heard there were some discussions on this list with regards to
the subject, but I've been unable to dig these up.

-- 
Jesper Noehr <[EMAIL PROTECTED]>
Developer, Opera Software ASA


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to