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
0
votes
1 answer

How to display related tags in django tagging?

i am using django tagging. can anyone give any example as to how can i show the related tags, when the object related to a particular tag is displayed? Something like similar tags in stackoverflow. Thank you!
G Gill
  • 1,087
  • 1
  • 12
  • 24
0
votes
1 answer

django-tagging like app for specific conditions in django

I am making a project where I want to build a user profile. In this user profile, I want to provide the field for employers and skills. Both of these fields have many to many relationship. One user can have multiple employers and each employer can…
Sachin
  • 3,672
  • 9
  • 55
  • 96
0
votes
1 answer

Sorting django-tagging results

I'm retrieving a set of DIFFERENT (of different class/model) objects with items = tagging.models.TaggedItem.objects.distinct().filter(tag__name__in=tagslist) all these objects necessarily have pub_date field, and I'd like to sort them by that…
Igor R
  • 625
  • 2
  • 10
  • 24
0
votes
1 answer

Django if statement is not working while comparing it with model values and html input

In results.html file I want to check if input value from html page and values from models are same. if so then show the matched result. But my code only executes else part. This is my results.html
Your data…
0
votes
0 answers

Django Error: getting Exception Value: Cannot resolve keyword 'tags' into field. Choices are: date, id, rp_tags, rp_title, slug, tagged_items, url

Currently, I am learning Django and with it, I am building a nonprofit organization's website. It is almost like a blog website except for like, comment features. Anyways, here's a page where all the reports are listed and these have tags. I used…
0
votes
1 answer

Bootstrap progress bar with dynamic progress value

I have a progress bar in a table similar to this: I can pass the value "2" for the percentage, but I cannot pass the value 2 to the aria-valuenow class that sets how fill is shown the progress bar. How could I pass the dynamic value to…
user3507584
  • 3,246
  • 5
  • 42
  • 66
0
votes
1 answer

Django built-in templates tags gets unformatted when I save my html file in VS-code

I'm using django built-in templates tags which are {% load static %} {% extends 'base.html' %} etc. so whenever I'm saving my document by pressing ctrl+s the formatting which should be gets disturbed which causes errors: Unclosed tag on line 1:…
Jayant Nigam
  • 171
  • 1
  • 9
0
votes
1 answer

Django - compare values of keys in dictionaries in two different lists

I have two lists of dictionaries that I have pulled from an XML file using elementtree. Each list of dictionaries contains dozens of keys/values but for simplicity sake let's say it's similar to the below: list1 = [{'id': '100', 'first_name':…
0
votes
2 answers

Django for loop doesn't display

I'm running into the issue of displaying the button within for-loop tag. When I remove tags {% for user in users %} from send_friend.html, the button is displayed, when I add it again, it's gone. models.py class Friend_Request(models.Model): …
Chris
  • 1
  • 2
0
votes
2 answers

In a Django template, is it possible to send the whole variable document to a template tag?

If I render a template using this document: { "a": 1, "b": 2 } In Django templates, I can render html using the value of "a" like this: {{ a }} But is it possible to send the whole document to a template tag? ie, all this? { "a": 1, "b": 2 } So…
Mike
  • 609
  • 12
  • 36
0
votes
1 answer

TemplateSyntaxError at GET in Django template

I'm working on Django template and setting Conditional branching whether there is a "query" or not. {% if {{ request.GET.query }} == "" %} detail {% else %}
0
votes
1 answer

Django : after include tag getting critical Error

after i'm using include tag in django template, i'm getting error. error: RecursionError at /home/ maximum recursion depth exceeded Error during template rendering my base.html file . {% load static %} {% include…
0
votes
2 answers

Django Tagging - trouble with separated tags

I have got trouble with django tagging - filtering by tags consisting of several words does not work. models class MyWidget(models.Model): """Widget for tagging. It's damn bugged, so it need try except statement for be able to import in…
I159
  • 29,741
  • 31
  • 97
  • 132
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

Creating Tags and filtering according to them in django

I'm creating a blog application to share interview experiences and i would like to filter the blog posts based on year, company of interview and job roles etc.. how do i take the above parameters as tags and when clicked on a certain tag, have to…
Pavan Guguloth
  • 81
  • 1
  • 10