I am having problems using django-tagging. I try to follow the documentation but it fails at the second step
Once you've installed Django Tagging and want to use it in your Django applications, do the following:
Put 'tagging' in your INSTALLED_APPS setting.
Run the command manage.py syncdb.
The syncdb command create...
I am using django-tagging. My model simply contains a field with a comma separated list of tags. I would like the user to be able to select tags from a list of already existing tags and also allow the user to add tags. Still resulting a comma-separated list of tags. How would I do that?
A pull down list doesn't work. I was thinking abou...
I'm looking for a way to add "user = models.ForeignKey(User, editable=False)" to django-tagging model with templatetags support but my django knowledge is too low to understand the code of django-tagging.
...
I'm using django-tagging, and am trying to retrieve a list of tags for a specific queryset. Here's what I've got:
tag = Tag.objects.get(name='tag_name')
queryset = TaggedItem.objects.get_by_model(Article, tag)
tags = Tag.objects.usage_for_queryset(queryset, counts=True)
"queryset" appropriately returns a number of articles th...
I'm relatively new to Django and I'm trying to build up my toolbox for future projects. In my last project, when a built-in template tag didn't do quite what I needed, I would make a mangled mess of the template to shoe-horn in the feature. I later would find a template tag that would have saved me time and ugly code.
So what are some...
I'm trying to do a transition from MySQL to SQLite for a small site. django-tagging is used for one of the models. For the transition I'm using the dumpdata loaddata method.
The dumpdata command works fine to export everything from the MySQL database into JSON. When I try to run the loaddata command for the SQLite database, I get this ...
I'm using the django app django-tagging and I'm trying to filter out certain tags for a simple tag search.
the variable 'tag' is text of some tag I am searching for.
'Widget' is the model associated with the tags.
tags = Tag.objects.usage_for_model(Widget, counts=True, filters=dict(tags__icontains=tag))
The code above sort of works. ...
Unless I'm missing something, it seems django-tagging (0.3) doesnt work on Django 1.1.x. I was having issues then search around and it seems to be the general concensious.
What are other people using? Just in case here is all I'm doing.
class Article(models.Model):
title = models.CharField(max_length=200)
tags = TagField()
tag...
What I'm looking for is a QuerySet containing any objects not tagged.
The solution I've come up with so far looks overly complicated to me:
# Get all tags for model
tags = Location.tags.all().order_by('name')
# Get a list of tagged location id's
tag_list = tags.values_list('name', flat=True)
tag_names = ', '.join(tag_list)
tagged_loca...
I'm using Django-Tagging, and I don't exactly need a cloud, I just want a limited list of the most popular tags used in my blog entries.
Using the following:
[(tag.name, int(tag.count)) for tag in Tag.objects.usage_for_model(Post, counts=True)]
It returns an array (note I'm using Lorem Ipsum while I develop):
[(u'deposit', 5), (u'e...
I wanted to add a StackOverflow-style tag input to a blog model of mine. This is a model that has a lot of data already in it.
class BlogPost(models.Model):
# my blog fields
try:
tagging.register(BlogPost)
except tagging.AlreadyRegistered:
pass
I thought that was all I needed so I went through my old database of blog post...
Let's say I wanted to showcase 2-3 clickable buttons on my homepage which will be there permanently. These are links to the css, html, and javascript tag listing pages.
Is it fine to just hardcode href=/tags/css and href=/tags/html right in my django templates/view?
I won't change them for at least a year or so, meaning I don't think I...
I currently have an entry in urls.py which fetches lone permalinks for my bugs:
from django.conf.urls.defaults import *
from tagging.views import tagged_object_list
from bugs.models import Bug
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Ex...
I'd like to categorize my tags. Here's an example of the tags I have now:
css, internet-explorer, firefox, floats
Each of those are separate tags ( 4 in total obviously ). I would like to mark the internet-explorer and firefox tags as browsers. Does django-tagging offer some sort of way for doing this or do I have to manually edit the ...
I'm starting a pro bono project that is the web interface to the world's largest collection of lute music and it's a challenging collection from several points of view. The pieces are largely from 1400 to 1600, but they range from the mid-1200's to present day. Needless to say, there is tremendous variability in how the pieces are catego...
The django-tagging app provides basic tagging functionality. I need each tag also to have properties (category, description, etc.), basically a related table. What's your recommendation, should I try to get this with django-tagging or implement "my tagging" from scratch?
...
How can I know if a new tag is created for a model? Looks like the django-tagging API does not provide such method. I'm new to both Django and django-tagging app and would like to hear your advice.
Update: what I'm trying to acomplish is to add more properties to tags. I think to have another model TagProperties linked to Tag model. And...
I have a Django project which uses django-tagging and is supposed to run in German. So I looked into the sources and found that django-tagging does indeed use gettext_lazy and is thus completely translatable. However, there are no translations available in the package. So I assume there must be a way for me to translate it from within my...