Django categorize content app.
Project description
Django Category
Simple category app providing category and tag models.
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.
Changelog
0.1
Dependency cleanup.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file django-category-0.1.tar.gz
.
File metadata
- Download URL: django-category-0.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda0c8e02261e987c7ba1e5372cf2d0e31c23e5e464afa8a618722dd7fb230e7 |
|
MD5 | f93ed7465f8d952e03877a215396ea80 |
|
BLAKE2b-256 | 4c7ad983bc30032319e06a53a91657ebd7c4545fd8f854a806a47ad2d8b9973f |
Provenance
File details
Details for the file django_category-0.1-py2.7.egg
.
File metadata
- Download URL: django_category-0.1-py2.7.egg
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a66b68d36290d1130bef96cda319deec9a437cc2e1ee86eaece41e059fb1247 |
|
MD5 | fd277e38e74dbb849f5fafa96f814485 |
|
BLAKE2b-256 | 9b35e49b984b6bfd93f0d0eaae764df15a1cbd53f0e4f08a5f45f1ded80198b1 |
Provenance
File details
Details for the file django_category-0.1-py2.6.egg
.
File metadata
- Download URL: django_category-0.1-py2.6.egg
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72c453d1b1a6d60264876292226b80a9ff111834820140059d7615cb4e22535d |
|
MD5 | 2372feebd0b7e831bef84dd934d19a46 |
|
BLAKE2b-256 | 161c7f5fcae2f17ccefe0e13e322239008789274106520a1a24b52487142431b |