Hey DEVs!
Welcome to the first post of Django Package Series. In this tutorial, you will learn how to add tagging functionality to your models.
Categories and tags help you organize your web site or blog and help your users find the information they want. A blog category is a topic you address on your blog. Your category list is like the table of contents for your blog. A tag is more specific and addresses items you discuss in a particular blog post. A tag is usually only a word or two and reflects the keywords or points of your article. If categories are your blog’s table of contents, tags are your blog’s index. By tagging an article with relevant key words, user can find the information easily so it makes your blog more professional.
django-taggit is a reusable application that primarily offers you a Tag model, and a manager for easily adding tags to any model. We will create very simple blog app and implement tagging system in it.
I am assuming that you already created Django project. Let's Start with installing package by following command:
pip3 install django-taggit
Once its installed, open settings.py and include taggit in your INSTALLED_APPS