django-category 0.0.6
Django categorize content app.
Latest Version: 0.1
Django Category
Simple category app providing category and tag models.
Contents
Installation
- Install or add django-category to your Python path.
- Add category to your INSTALLED_APPS setting.
Usage
Enable categorization and/or tagging on a model by creating ManyToMany fields to the models provided by django-category, for example:
from django import models
class MyModel(models.Model):
categories = models.ManyToManyField(
'category.Category',
help_text='Categorize this item.'
)
tags = models.ManyToManyField(
'category.Tag',
help_text='Tag this item.'
)
Models
class Category
Category model to be used for categorization of content. Categories are high level constructs to be used for grouping and organizing content, thus creating a site's table of contents.
Category.title
Short descriptive title for the category to be used for display.
Category.slug
Short descriptive unique name to be used in urls.
Category.parent
Optional parent to allow nesting of categories.
class Tag
Tag model to be used for tagging content. Tags are to be used to describe your content in more detail, in essence providing keywords associated with your content. Tags can also be seen as micro-categorization of a site's content.
Tag.title
Short descriptive name for the tag to be used for display.
Tag.slug
Short descriptive unique name to be used in urls.
Tag.categories
Categories to which the tag belongs.
Authors
Praekelt Foundation
- Shaun Sephton
- Jonathan Bydendyk
Changelog
0.0.6
- Added get_absolute_url on Category
0.0.5
- Use prepopulate_fields for admin interface
- Parent category field added
- South migration path created
- Tree view of categories and tags
0.0.4 (2011-08-24)
- Docs, testrunner.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-category-0.0.6.tar.gz (md5) | Source | 2011-09-23 | 5KB | 300 | |
| django_category-0.0.6-py2.6.egg (md5) | Python Egg | 2.6 | 2011-09-23 | 12KB | 454 |
| django_category-0.0.6-py2.7.egg (md5) | Python Egg | 2.7 | 2011-09-23 | 12KB | 308 |
- Author: Praekelt Foundation
- Home Page: http://github.com/praekelt/django-category
- License: BSD
- Categories
- Package Index Owner: Shaun.Sephton, Praekelt, hedley
- DOAP record: django-category-0.0.6.xml
