I want to write a blog by Django, in a blog post there will be some tags, but I don’t know which model type can implement this function.
Is there a model type can store tags in django?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use django-taggit (docs) to add tags to your models (e.g., your
BlogPostmodel). Each model will have a field that stores these tags and there will also be an additional section in your Django admin for managing these tags.