Questions tagged [django-taggit]

django-taggit is a reusable Django application designed to making adding tagging to your project easy and fun.

django-taggit works with Django 1.1 and 1.2 (see Known Issues for known issues with older versions of Django), and Python 2.4-2.X.

306 questions
0
votes
1 answer

Django tag detail page with taggit

I've a very similar problem like this post. Long story short, I've got a django blog, and for tags I'm using django-taggit which is working nice on the admin page. AdminScreen My main problem is that if I like to filter to a tag by an url address I…
0
votes
2 answers

Django/django-taggit -- How to access filtered tag name in template

I'm looking for the right syntax to access my tag name. Here's my view: def tag_filter(request, tag): now = datetime.datetime.now() concerts = Concert.objects.filter(tags__name__in=[tag])\ …
Danny
  • 470
  • 1
  • 4
  • 21
0
votes
1 answer

Django-Filter: {{ field.value }} is Empty when rendering form fields

I'm using the Django-Filter library !important. For tags, I'm using Django-taggit. I built the following filter.py: class TaskFilter(django_filters.FilterSet): tags = django_filters.ModelMultipleChoiceFilter(widget=forms.CheckboxSelectMultiple,…
GRS
  • 2,807
  • 4
  • 34
  • 72
0
votes
1 answer

How to filter taggit tags with related items fields using the Django ORM?

I have a model where I use the django-taggit TaggableManager: from django.db import models from model_utils import Choices from taggit_autosuggest.managers import TaggableManager LANGUAGE_CHOICES = Choices( ('de', 'Allemand - Deutch'), …
Natim
  • 17,274
  • 23
  • 92
  • 150
0
votes
2 answers

Django-taggit kwargs understanding

I'm using-django taggit and it works fine. But there are need to make some changes to extend DetailView url and after them TagListView chushed with 404 error. So i'm undestand that problem with kwargs in get_absolute_url function, but i can't…
Ilya
  • 1
  • 3
0
votes
2 answers

Exclude some Posts from count of tags

I'm using django-taggit to manage my tag. I want to include a list of used tags with the indication of how many times each of them has been used. To do so I'm using taggit_templatetags2 but I can avoid. My models.py: from taggit.managers import…
fabio
  • 1,210
  • 2
  • 26
  • 55
0
votes
0 answers

Error on terminal while installing django taggit via pip install on ubuntu gnome

I am getting the error on installing django-taggit module... what might be the problem? Please help I have tried everythin and it̀s still bringing the same error even tried updating my setup tools :~$ pip install django-taggit Collecting…
Tyche
  • 1
  • 1
0
votes
1 answer

Error saving tags in Django Taggit

I have my models.py as class TaggedActionsBefore(GenericTaggedItemBase): tag = models.ForeignKey(Tag, related_name="%(class)s_emotionsbefore") class TaggedActionsAfter(GenericTaggedItemBase): tag = models.ForeignKey(Tag,…
Shahrukh Mohammad
  • 985
  • 2
  • 17
  • 33
0
votes
1 answer

How to filtering tag using Django2.0 and django-taggit0.22.1

I have a problem which I can't resolve. I tried to implement tags features in my blog project in Python/Django 2.0. I installed django-taggit0.22.1. I have a class Post with atributte tags = TaggableManager() I also have a few posts object with…
0
votes
2 answers

Django taggit integration with frontend (auto-complete and auto-suggest)

I'm looking for a django app that provides a form-filed with taggit integration and a front end JS tagging library as mentioned here: jQuery autocomplete tagging plug-in like StackOverflow's input tags? Do I have to implement this myself or is…
Kotlinboy
  • 3,725
  • 4
  • 16
  • 27
0
votes
1 answer

Using TaggableManager for m2m relationship in django

I am trying to use TaggableManager() to add tags in my form in django application but this does not seem to work. class UserBookmark(models.Model): user = models.ForeignKey(User) bookmark = models.URLField() tag = TaggableManager() …
Dhruv Pandey
  • 482
  • 6
  • 18
0
votes
1 answer

django-taggit obtain tags string from form

I trying to use django-taggit as a tag model. model.py class Product(models.Model): product_no = models.IntegerField(primary_key=True) ... tags = TaggableManager(blank=True) views.py def action(request): product = Product() …
kanoonsantikul
  • 171
  • 1
  • 7
0
votes
1 answer

Django-taggit with Django-treebeard or suitable Taxonomy app

Environment: Python 2.7.10 Django 1.11.3 Problem I need a Taxonomy system instead of just tags. For example: Art > Digital Illustration Programming > Websites > Code Fights Programming > Websites > Hackerrank Programming > Websites > Code Fights >…
Chayemor
  • 3,577
  • 4
  • 31
  • 54
0
votes
1 answer

How to create a filter queryset on an array so that all search terms are required?

I have a Photo model with tags. I want to be able to create a query such that only photos having all search tag terms will be returned. The current behavior (using the view code below) returns photos having any of the tags being searched…
Evan Zamir
  • 8,059
  • 14
  • 56
  • 83
0
votes
1 answer

Customising tags in Django to filter posts in Post model

Quick question - I'm not sure what would be the correct way to handle this. Essentially I wish to define a custom tag which handles some logic then returns all posts of model Post which has the is_featured field set to True. I have tried a number of…
user7179686