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. settings.py [sourcecode language="python"] INSTALLED_APPS = ( … ‘tagging’, … ) [/sourcecode] Inside your model, add a TagField which contains all your tags. models.py [sourcecode language="python"] … from tagging.fields import TagField … […]

Tag cloud


Social Sharing

Feeds