Re: Tagging - Extending by adding a rating?

2010-04-06 Thread Victor Hooi
heya, Hmm, I haven't thought about that. From what I can gather, the "TaggedItem" model is what links "Tag" to your own model, via Generic Relations - so it's basically the glue that binds the two. I think adding another intermediary table between your model and "TaggedItem" might break all the T

Re: Tagging - Extending by adding a rating?

2010-03-22 Thread Paulo Almeida
I know django-tagging has the Tag model and the TaggedItem model. I wonder if it would be possible to create the Many to Many relationship between your Articles and this TaggedItem model, through a Ratings intermediary table. I have no idea if that would work (and keep all the django-tagging featur

Re: Tagging - Extending by adding a rating?

2010-03-21 Thread Victor Hooi
Paolo, Thanks for the quick reply =). I did think of that, just using a M2M, however, that means I lose all of the inherent features of django-tagging. For our case, that would probably be things like helpers to do auto-complete for tags, automatically parsing form inputs with commas into tags, t

Re: Tagging - Extending by adding a rating?

2010-03-21 Thread Paulo Almeida
A possible solution would be to create a Many To Many relationship between articles and companies, with an intermediary model holding the ratings: http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships - Paulo On Mon, Mar 22, 2010 at 2:41 AM, Victor Hoo

Re: tagging case problem

2009-10-14 Thread grimmus
Awesome, works great, thanks alot On Oct 14, 9:20 am, Bayuadji wrote: > hi, > > >>tag = Tag.objects.get(name=unslug) > > how about change that into: > tag = Tag.objects.get(name__iexact=unslug) > so it not case > sensitive.http://docs.djangoproject.com/en/dev/ref/models/querysets/#ref-models...

Re: tagging case problem

2009-10-14 Thread Bayuadji
hi, >>tag = Tag.objects.get(name=unslug) how about change that into: tag = Tag.objects.get(name__iexact=unslug) so it not case sensitive. http://docs.djangoproject.com/en/dev/ref/models/querysets/#ref-models-querysets -djibon- On 10/14/09, grimmus wrote: > > Hi, > > I followed the excellent W

Re: tagging problems

2009-09-01 Thread Japan Shah
yes problem is django version missmatch. django 1.0 final and its not compatible with tagging 2.* for it you must use tagging 0.3 On Jul 26, 1:23 pm, todd12 wrote: > Hi T, > > I found this in the tagging issues from 2008 but it worked: > > if your like me then you get this message from within th

Re: tagging problems

2009-07-26 Thread todd12
Hi T, I found this in the tagging issues from 2008 but it worked: if your like me then you get this message from within the python interpreter. Well I figured out that I need to be running the"python manage.py shell" command from within the site DIR to get all the environment variables correct.

Re: tagging question about django-tagging

2009-07-15 Thread Alex Gaynor
On Wed, Jul 15, 2009 at 9:31 AM, joep wrote: > > I'm new to both python and django, so please excuse my ignorance if > this is obvious. I have a tagged model which I would like to form a > tag cloud. I am using the following > >t = Tag.objects.cloud_for_model(Post, >filters=dict(

Re: Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-28 Thread dartdog
Thank you, Still wouldn't I be better off putting tagging someplace associated with Django, rather than in a Python Library so when I go to deploy I'm not looking for stuff all over..?? Maybe just a small item,,but housekeeping can get confusing as projects grow? On Jun 28, 3:48 am, Vladimir Shul

Re: Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-28 Thread Vladimir Shulyak
> It still surprises me that the tagging module does not live with the > rest of Django as opposed to within Python. Nothing unusual. Your django app lives in PYTHONPATH and other modules/ apps may live in libs directory as it is also in PYTHONPATH. You could create any directory you like (with y

Re: Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-27 Thread dartdog
Thanks I had seen the note but had not yet gone down that path,,, I'll report back. It still surprises me that the tagging module does not live with the rest of Django as opposed to within Python. Thanks for the quick reply! On Jun 27, 5:14 pm, Karen Tracey wrote: > On Sat, Jun 27, 2009 at 5:4

Re: Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-27 Thread Karen Tracey
On Sat, Jun 27, 2009 at 5:46 PM, dartdog wrote: > > Old topic but don't really get the solution... > I'm using SVN 1.1 Django > and Python 2.6 On win Vista > I downloaded tagging and it now sits in my Site-Packages directory for > Python I used Tagging 0.2.1 win 32exe from Google code There's a

Re: tagging

2008-01-19 Thread Chris
Never mind had a brain fart. I should use models.ForeignKey(ContentType,). On Jan 19, 4:36 pm, Chris <[EMAIL PROTECTED]> wrote: > Hello I wrote a tagging app and it is not validating when I attempt to > install it into my database. The error is related to the TAG_FILTER > tuple located in my mode

Re: Tagging

2007-05-11 Thread Christian M Hoeppner
El Friday 11 May 2007 18:06:48 James Bennett escribió: > On 5/11/07, Christian M Hoeppner <[EMAIL PROTECTED]> wrote: > > Just what I needed. Still... I have to handle this in a custom admin > > view, do I? Even after reading that chapter in the django book I'm unsure > > about those custom views.

Re: Tagging

2007-05-11 Thread James Bennett
On 5/11/07, Christian M Hoeppner <[EMAIL PROTECTED]> wrote: > Just what I needed. Still... I have to handle this in a custom admin view, do > I? Even after reading that chapter in the django book I'm unsure about those > custom views. Where do I tell it to show that text input if it's not in the >

Re: Tagging

2007-05-11 Thread Christian M Hoeppner
El Friday 11 May 2007 17:37:12 James Bennett escribió: > On 5/11/07, Christian M Hoeppner <[EMAIL PROTECTED]> wrote: > > How would one handle this? > > > > * Display text input instead of default multi-select. > > * Handle the input and save it to the right places. > > You might want to have a loo

Re: Tagging

2007-05-11 Thread James Bennett
On 5/11/07, Christian M Hoeppner <[EMAIL PROTECTED]> wrote: > How would one handle this? > > * Display text input instead of default multi-select. > * Handle the input and save it to the right places. You might want to have a look at Jonathan Buchanan's Django tagging application, which seems lik

Re: Tagging.

2006-08-07 Thread Seth Buntin
Can I extend the form Manipulator or something that will allow me to change the ManyToMany select field with a text field? I think I have seen some examples but I don't quite know how to extend it. --~--~-~--~~~---~--~~ You received this message because you are s

Re: Tagging.

2006-08-07 Thread Seth Buntin
Thanks Eric. I have one question though. If I have a model named Resources how do I get a field in that that will allow me to define my tags? I put: tags = models.GenericRelation(ObjectTag) But when I go to the admin I get a Formfield not found or something like that. Seth nkeric wrote: >

Re: Tagging.

2006-08-07 Thread nkeric
hi Seth, here is a link to the tagging models I've done in my project, you may want to have a look :) http://groups.google.com/group/django-users/browse_thread/thread/50b6712cd7738d9d/4b654db1ecaf4b2f?lnk=gst&q=ObjectTag&rnum=1#4b654db1ecaf4b2f Here is the basic ideas of my tagging app: 1. a

Re: Tagging.

2006-08-07 Thread Antonio Cavedoni
On 7 Aug 2006, at 15:23, Seth Buntin wrote: > I have a Django project (almost complete) that needs to implement > tagging. […] I think I am going to have to write this > from scratch but I don't know where to start. Can someone point me in > the right direction? You may want to have a look at g

Re: Tagging app

2006-05-27 Thread Luke Plant
On Sunday 28 May 2006 00:22, Ian Holsman wrote: > Hi Luke. > what license is this code under? Oops, forgot to add a LICENSE file. I was going to put it under BSD, same as Django, unless anyone has a compelling reason for anything else, Luke -- "The number you have dialed is imaginary. Plea

Re: Tagging app

2006-05-27 Thread Ian Holsman
Hi Luke. what license is this code under? On 27/05/2006, at 12:03 PM, Luke Plant wrote: > > On Friday 26 May 2006 22:37, Jacob Kaplan-Moss wrote: > >> Looking forward to seeing your code, > > OK, you can now get it here: > > http://files.lukeplant.fastmail.fm/public/python/ > lp_tagging_app_0.

Re: Tagging app

2006-05-26 Thread tekNico
> One of the things that motivated my design was the ability to store > creation dates - i.e. you can see exactly when you (or anyone else) > tagged a specific item with a specific bit of text. Ian's solution > goes further, and has various models, including a 'Bookmark' that > allows more inform

Re: Tagging app

2006-05-26 Thread Luke Plant
On Friday 26 May 2006 22:37, Jacob Kaplan-Moss wrote: > Looking forward to seeing your code, OK, you can now get it here: http://files.lukeplant.fastmail.fm/public/python/lp_tagging_app_0.1.zip or here, using bzr: bzr branch http://files.lukeplant.fastmail.fm/public/python/lukeplant_me_uk/

Re: Tagging app

2006-05-26 Thread Jacob Kaplan-Moss
Hey Luke -- Looks great; I've personally been working on something similar but it looks like you'll beat me to it :) I've also been slowing adding generic relationship support, and I'd really like to get a look at your GenericForeignKey class; chances are it would simplify a good deal of code I'

Re: Tagging app

2006-05-26 Thread Luke Plant
arthur debert wrote: > ps: how is the GenericForeignKey going to work? will it be imported > from the tagging app's package, or will it go into trunk? There is no guarantee that any of this stuff will go into trunk at all - the core django devs would obviously have to be for it first. But the

Re: Tagging app

2006-05-26 Thread Luke Plant
Ivan Sagalaev wrote: > The single target means that one tag can't be used for different models? Yep, a single 'Tag' object is associated with just one target and one creator. However, you can easily tag different models and objects with the same bit of text. > I have chosen a different approa

Re: Tagging app

2006-05-26 Thread Jason Davies
Sounds great, I'd love to see this added. Regards, Jason --~--~-~--~~~---~--~~ 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

Re: Tagging app

2006-05-25 Thread Ivan Sagalaev
Luke Plant wrote: >I've been writing some tagging functionality for my site, and I've >developed it in a way that is reusable and generic, similar in some >ways to the 'comments' app in contrib. > Seems that tags are hot in Django these days :-). Couple of days ago I've done my TagsField as a

Re: Tagging app

2006-05-25 Thread arthur debert
Hi Luke, Please do so. Tagging is, buzzword or not, pretty useful and many people have / will implement it on their own (I was mid way through just now). It would be great to leverage on your code, and I think it would benefit django users in general, as it could make more applications pluggabl

Re: Tagging app

2006-05-25 Thread Scott Anderson
Luke, I'm definitely interested, since I've been thinking about doing this very thing. Regards, -scott On Fri, 2006-05-26 at 00:57 +0100, Luke Plant wrote: > Hi all, > > I've been writing some tagging functionality for my site, and I've > developed it in a way that is reusable and generic, si

Re: Tagging app

2006-05-25 Thread Ian Holsman
just as an aside, I've also written a similar tagging app, which covers about 70% of the same functionality as Luke's personally I'd love a 'standard' tagging app in contrib which combines the best of both worlds, as it seems like this functionality is what most users: a) want b) struggle wit

Re: Tagging things

2006-05-18 Thread Malcolm Tredinnick
On Thu, 2006-05-18 at 12:48 +0200, Jesper Nøhr wrote: [...] > I was helped by Malcom on IRC, so the only decent thing to do, is to > post the solution here. [...] > You can call it like this: > > tags = ["foo","bar"] > > all = Contract.objects.from_tags(tags) > > What happens is that you count

Re: Tagging things

2006-05-18 Thread Jesper Nøhr
On 5/18/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: [...] I was helped by Malcom on IRC, so the only decent thing to do, is to post the solution here. I'll try to explain as well as I understand it. First some code: class Tags(models.Model): tag = models.CharField(maxlength = 50)

Re: Tagging things

2006-05-17 Thread Malcolm Tredinnick
On Wed, 2006-05-17 at 12:56 -0700, [EMAIL PROTECTED] wrote: > 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

Re: Tagging things

2006-05-17 Thread [EMAIL PROTECTED]
Ian, Thanks for your quick reply. You have indeed implemented what I'm looking for, unfortunately, it is not as ellegant as I hoped for (no offense!). I'm perhaps mistaken, but it seems like you're brute-checking per-entry if all the tags exists. What I'd love to do is simply apply a .filter() t

Re: Tagging things

2006-05-17 Thread Ian Holsman
On 18/05/2006, at 5:56 AM, [EMAIL PROTECTED] wrote: > > Hi list, > > 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 i