Installation#
To use the Category model#
Install django-categories:
pip install django-categories
Add
"categories"
and"categories.editor"
to yourINSTALLED_APPS
list in your project’ssettings.py
file.INSTALLED_APPS = [ # ... "categories", "categories.editor", ]
Run
./manage.py syncdb
(or./manage.py migrate categories
if 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_APPS
list in your project’ssettings.py
file.INSTALLED_APPS = [ # ... "categories.editor", ]
Create your own models.