Skip to main content

Django categorize content app.

Project description

Django Category

Simple category app providing category and tag models.

Installation

  1. Install or add django-category to your Python path.

  2. 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.

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.4 (2011-08-24)

  1. Docs, testrunner.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-category-0.0.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distributions

django_category-0.0.4-py2.7.egg (5.2 kB view details)

Uploaded Source

django_category-0.0.4-py2.6.egg (5.2 kB view details)

Uploaded Source

File details

Details for the file django-category-0.0.4.tar.gz.

File metadata

File hashes

Hashes for django-category-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ae128eccf9725e8e0f41c90401748373eef3dab4bd9d8613d6a2a044848f17d7
MD5 5908fb5ac29b545b0e08a92cd3b7d8da
BLAKE2b-256 0bfb664319e2a0b246e78c61bd2621e10c1bd0031300e1d5df849b8ec503d82e

See more details on using hashes here.

Provenance

File details

Details for the file django_category-0.0.4-py2.7.egg.

File metadata

File hashes

Hashes for django_category-0.0.4-py2.7.egg
Algorithm Hash digest
SHA256 4f02f3746ab676f83dd95697c24cfa96101054ab9595236f5063a90b2cf29453
MD5 4f4b7d97cd8bbc29638e75ec0d032353
BLAKE2b-256 a8d4b1508890f22a885f34922551784c13e34dd86eddd897167a653fafdf8634

See more details on using hashes here.

Provenance

File details

Details for the file django_category-0.0.4-py2.6.egg.

File metadata

File hashes

Hashes for django_category-0.0.4-py2.6.egg
Algorithm Hash digest
SHA256 9d5926ad3816892fc6175698abdf02b0bd28b048d7f22ed2cc46cd633219e9a2
MD5 eeb1692ac90ed4c9ff44dc9c67ea21bf
BLAKE2b-256 fadc6944dfa451a409c6b766d41df676b2f6a6772ce5a79ce867c331b43609c1

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page