Installation#
To use the Category model#
Install django-categories:
pip install django-categories
Add
"categories"and"categories.editor"to yourINSTALLED_APPSlist in your project’ssettings.pyfile.INSTALLED_APPS = [ # ... "categories", "categories.editor", ]
Run
./manage.py syncdb(or./manage.py migrate categoriesif you are using South)
To only subclass CategoryBase#
If you are going to create your own models using CategoryBase, (see Creating Custom Categories) you’ll need a few different steps.
Install django-categories:
pip install django-categories
Add
"categories.editor"to yourINSTALLED_APPSlist in your project’ssettings.pyfile.INSTALLED_APPS = [ # ... "categories.editor", ]
Create your own models.