Questions tagged [django-tagging]

A generic tagging application for Django projects, which allows association of a number of tags with any Django model instance and tries to simplify retrieval of tags. Use this tag for questions related to the django application or tagging issues in Django.

A generic tagging application for Django projects, which allows association of a number of tags with any Django model instance and tries to simplify retrieval of tags. Use this tag for questions related to the Django application or tagging issues in Django.

87 questions
1
vote
0 answers

Uninstalling django-dagging-autocomplete

I've used setuptools to install django-tagging-autocpmlete. I then added all necessary settings to the settings file (INSTALLED_APPS, etc) and it worked fine. When I wanted to remove the app, I took it off my INSTALLED_APPS list. The problem is…
Meir
  • 1,691
  • 2
  • 14
  • 15
1
vote
1 answer

Can't save tags in admin using django-taggit

I am using django-taggit and I can't save the tags when creating a new post from the admin panel, when I edit a post I had already created before adding django-taggit, it saves the tags well, what might be the problem? Models.py class…
Billy Dan
  • 29
  • 1
  • 8
1
vote
0 answers

django search on site taggit

model class Bb(models.Model): image = models.ImageField(upload_to=get_timestamp_path, verbose_name='Pic') author = models.ForeignKey(AdvUser, on_delete=models.CASCADE, verbose_name='Author') created_at =…
1
vote
1 answer

check that tag is used in template only once

I write a custom tag for using in django templates: {% my_custom_tag %}. Using django channels it extends some page functionality. But I a worried that users may by accident insert this tag twice to a template, and that can create some issues…
1
vote
1 answer

How make tags with properties in Django?

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…
grigy
  • 6,696
  • 12
  • 49
  • 76
1
vote
2 answers

Installation problems with django-tagging

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…
Jonas
  • 19,422
  • 10
  • 54
  • 67
1
vote
1 answer

Filter in custom Django tag?

I created a custom tag, that accepts a parameter: {% panel "most" %} I would use the add to the parameter: {% panel "most"|add:"_people" %} I expect the parameter will be "most_people", but instead it is "most"|add:"_people". It seems that…
Marco Sulla
  • 15,299
  • 14
  • 65
  • 100
1
vote
1 answer

Django-tagging: Grabbing objects by specifying multiple tags?

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…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
1
vote
3 answers

Retrieving untagged objects with django-tagging

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…
lemonad
  • 4,148
  • 26
  • 27
1
vote
1 answer

What to use for tagging in Django 1.1

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…
Clarence
  • 25
  • 3
1
vote
1 answer

django-tagging loaddata error

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…
Tomas Andrle
  • 13,132
  • 15
  • 75
  • 92
1
vote
1 answer

How to allow whitespaces in tag names using django-tagging-0.3.1?

I'm using the django-tagging-0.3.1 package to tag all the articles in my website. But I just found that this package seems not to support whitespace in tag name, which means when a tag name has whitespace in it and you use the function it provides,…
chaonextdoor
  • 5,019
  • 15
  • 44
  • 61
1
vote
2 answers

Loading template tag variables for use in template

How do I load the results of a templatetag into a a template to iterate over? Basically I am aiming to load the tags on a model object (using django-tagging) and then iterate through the tags to create a list of related products based on those tags.…
user1328021
  • 9,110
  • 14
  • 47
  • 78
1
vote
1 answer

Django CMS - Call a cmsplugin in a template tag

My problem With Django CMS 2.3.3, when creating a Page I use cmsplugin_picture* next to a couple of other cmsplugins. In my cms template, instead of doing: {% placholder "content" %} //calling the Django Page including all plugins... I would like…
0
votes
3 answers

Choosing a random item from a tagged library

Gradding a random image causes the title, url (etc) attributes on the tag.rand_img to vanish, meaning I can't display anything more than the object name. view.py: def locations_gallery(request): queryset = Photo.objects.all() tags =…
Rob B
  • 1,514
  • 3
  • 23
  • 38