May 25 2012

Using django-tagging in Django Project

published by Yancy Vance Paredes
in blog Learned Stuff
original entryUsing django-tagging in Django Project

django django-tagging

Install django-tagging application inside your virtual environment. [sourcecode language="bash"]pip install django-tagging[/sourcecode] After installing the application, add tagging inside the INSTALLED_APPS of your project settings. [sourcecode language="python"] INSTALLED_APPS = ( … ‘tagging’, … ) [/sourcecode] Inside your model, add a TagField which contains all your tags. [sourcecode language="python"] … from tagging.fields import TagField … […]

Tag cloud

Social Sharing