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
24
votes
2 answers

Django: Passing HTML string to template

I'm having an issue while trying to display a html chunk of code created on a django view. Here's what's happening. On my view, I'm trying to pass to the template a bunch of book descriptions which I'll hide/show according to user action. These…
Paraphiliac Ostrich
  • 1,270
  • 2
  • 11
  • 25
12
votes
2 answers

Can Django trans tags include HTML tags?

Can Django trans tags include HTML tags? For example can I do {% trans "Hold Ctrl" %} ? Or would I have to do {% trans "Hold" %} {% trans "Ctrl" %}" instead?
Daniel
  • 1,774
  • 2
  • 22
  • 38
11
votes
1 answer

Is Django-Tagging still maintained?

Last contribution to github has been on 2010_01_22, which is more than 2 years now. Tagging still works, but will it continue to? Is it just so well written it doesn't need maintaining for such a long time? Or do i just have the wrong source with…
marue
  • 5,588
  • 7
  • 37
  • 65
11
votes
3 answers

Django's I18N with third-party apps

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…
Nikolai Prokoschenko
  • 8,465
  • 11
  • 58
  • 97
9
votes
1 answer

Django - use template tags in if statement

I saw similar questions but none of them solved my problem . I have a simple template tag like this : @register.simple_tag def liked_by_user(post_id, user): try: PostModel.objects.get(pk=post_id).like_set.get(user=user) return…
Mehdi bahmanpour
  • 574
  • 7
  • 21
4
votes
2 answers

get_extra_restriction() missing 1 required positional argument: 'related_alias' error django

I deployed my django site on heroku and when i run my url which uses django taggit in it error shows up. I am using django taggit for meta keys to find related blogs.
4
votes
1 answer

Django tagging: "already registered" exception

I installed Django tagging. I read the tutorial and disassemble, how it works. In my models: import tagging class TaggingWidget(models.Model): """Widget for tagging.""" name = models.CharField(max_length =…
I159
  • 29,741
  • 31
  • 97
  • 132
4
votes
1 answer

Crazy behaviour when trying to import python module

I have some problems with a django webapp I want to deploy with Apache mod-wsgi and I've traced them down to this line (the django-tagging module is missing): [Wed Feb 20 13:08:42 2013] [error] [client 172.19.130.50] ImportError: No module named…
Serafeim
  • 14,962
  • 14
  • 91
  • 133
3
votes
3 answers

How to search for objects without certain tags?

I have a queryset containing some objects. Depending on some case or the other i now want to exclude all the objects without certain tags (_tags is the name of the TagField on my model): self.queryset=self.queryset.exclude(_tags__id__in=avoid) But…
marue
  • 5,588
  • 7
  • 37
  • 65
3
votes
3 answers

django: django-taggit usage

This is probably a stupid question but I downloaded Django-taggit and the docs mentioned adding a TaggableManagermanager to the each model I want to associate. This is fine, but what about models from external apps I "pip-ed"? What's the best way…
goh
  • 27,631
  • 28
  • 89
  • 151
3
votes
1 answer

Django tagging and django admin

How can I add something like a dropdown list or text input with the tags as a search in django admin
Ilian Iliev
  • 3,217
  • 4
  • 26
  • 51
3
votes
0 answers

django-tagging Error in formatting: AttributeError: 'NoneType' object has no attribute '_base_manager'

Struggling to understand an error with a Django application django-tagging (v 0.4.6) using Django 1.11.9 and Django Grapelli 2.10.1 It has a basic installation and I can use it just find to tag the models within my application. The default install…
jayuu
  • 443
  • 1
  • 4
  • 17
3
votes
1 answer

Categories of tags

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…
Peter Rowell
  • 17,605
  • 2
  • 49
  • 65
3
votes
1 answer

Django taggit, using a custom tagname

I've set up django-taggit and it's working fine, all tags are listed under tags in admin. However, I now want to separate my tags into 2 groups, english tags, and spanish tags. This is what I have, from the documentation here: class…
rix
  • 10,104
  • 14
  • 65
  • 92
3
votes
6 answers

Django-Tagging - count and ordering top "tags" (Is there a cleaner solution to mine?)

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…
KeyboardInterrupt
  • 3,483
  • 8
  • 36
  • 41
1
2 3 4 5 6