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
0 answers

Receiving "No Module named ''taggit" in Django3

New to django, attempting to add tagging functionality to a blog application. This is a debian environment. Installed using pip3 install django-taggit validated using pip freeze Django==3. django-taggit==1.2.0 Then…
Sean
  • 1
  • 2
0
votes
1 answer

How to seperate wagtail image's tags from page's tags?

Suppose we have a wagtail page defined like this: class PostTag(TaggedItemBase): content_object = ParentalKey( 'PostPage', related_name='tagged_items', on_delete=models.CASCADE ) class PostPage(Page): ... …
HsnVahedi
  • 1,271
  • 3
  • 13
  • 34
0
votes
1 answer

What is the difference between ChildPage.objects.child_of(self) and ParentPage.get_children()?

I think that ChildPage.objects.child_of(self) and ParentPage.get_children() produce same result because subpage_types of ParentPage is just one ['ChildPage']. But when I try to filter the result of ParentPage.get_children() there is an error. …
Unviray
  • 162
  • 1
  • 10
0
votes
1 answer

Tags input field in instance view at admin panel

I'm using django-taggit and its working fine, but one moment. When i open instance in django admin - tags input field autofill with following format: 1 is it possible to get tags input autofill format like this? 2 Or disable autofill by…
Ilya
  • 1
  • 3
0
votes
1 answer

Fixtures data for model containing images, files and tags

I am using Djano 3.1, Python 3.6, easy-thumbnails 2.7 and django-taggit 1.3 I want to create a fixtures data file for my model. Here is my (simplified) model: myapp/models.py class Post(models.Model): featured_image =…
0
votes
1 answer

django-taggit Error on calling names() on Custom Tag

I am trying to create a model with two types of tags associated with companies and topics and followed the documentation at django-taggit for making Custom Tags to facilitate having two Taggable Manager in one model. My models.py from django.db…
0
votes
1 answer

How to save tag in django to my model using django-taggit

I dont know how to save tag to my model ,can you plz guide me to do this This is my model class publish(models.Model): Userid=models.ForeignKey(Userdata,on_delete=models.CASCADE) tittle=models.CharField(max_length=20) …
0
votes
1 answer

For blog post i used tags by many_to_many filed. Now i try to use Django_Taggit for tag field, but i face some error while migrate

Old MODELS.py when use tags by many_to_many fields class Tag(models.Model): tag_name = models.CharField(max_length=64, unique=True) tag_slug = models.SlugField(max_length=64, unique=True) created_on =…
Gazi Ashiq
  • 26
  • 4
0
votes
1 answer

Django can't import taggit module in apache server, fine in local server, Import from manage.py shell but django can't import it, No virtualenv used

As I said everything is working on my system, but when I pushed code to my server (I replace my app directory with a new updated code directory and manually add "taggit" in my installedapp in settings.py file) after that run all the required cmd…
Gopesh
  • 1
  • 3
0
votes
1 answer

How to use Django-Filter together with Django-Taggit (to filter posts by tags)?

I would like to filter my posts by tags. How could I use it together with Django filter? My current situation: #models.py from taggit.managers import TaggableManager class Post(models.Model): title = models.CharField(max_length = 200) text…
Al Nikolaj
  • 305
  • 4
  • 13
0
votes
1 answer

django rest framework , Invalid json list

I am trying to add tags to my posts. It works fine but whenever I make serializer class (to return JSON data ) it raises the error shown below: { "tags": [ "Invalid json list. A tag list submitted in string form must be valid json." …
art_cs
  • 683
  • 1
  • 8
  • 17
0
votes
1 answer

django taggit-serializer not create tags in rest framework

here is my models.py class Post(models.Model): author=models.ForeignKey(User,on_delete=models.CASCADE,related_name="post") title=models.CharField(max_length=128,null=True,blank=True) …
John
  • 137
  • 2
  • 12
0
votes
1 answer

Django Taggit error "too many SQL variables" how can i do limit query?

Hello i have a wallpaper website. Im using taggit. I have 200k tags and have 20k wallpaper. I want use related wallpapers in view like this def detail(request,slug): wallpaper = get_object_or_404(Wallpapers, slug = slug) category =…
Aytek
  • 224
  • 4
  • 16
0
votes
2 answers

How to add tags using taggit in Django admin

I am trying to add tags to my blog app using django admin but every-time I add a tag through the admin console, I get this error Can't call similar_objects with a non-instance manager Is this because I am not saving the the tags in the admin or is…
Zubair Amjad
  • 621
  • 1
  • 10
  • 29
0
votes
1 answer

Cannot resolve keyword 'tag' into field

I am following the book 'Django 2 by example', and when it comes to implementing the tagging system for blog posts I encounter this error: the error is caused when I click on the first-post tag shown here here is models.py from…
Techoplite
  • 605
  • 9
  • 23