This app attempts to provide a generic category system that multiple apps could use. It uses MPTT for the tree storage and provides a custom admin for better visualization (copied and modified from feinCMS).
Find a file
2011-08-01 09:48:50 -04:00
categories Added a get_latest_objects_by_category template tag. Might be useful. 2011-08-01 09:14:18 -04:00
doc_src Updating the documentation. 2011-08-01 09:48:50 -04:00
docs Updating the documentation. 2011-08-01 09:48:50 -04:00
editor [Fixes issue #23] Changes the way the tree shows items when searched. Doesn't hide them in the template. 2011-08-01 09:15:55 -04:00
example Enabled new registry in the example app for testing. 2011-05-16 08:58:05 -04:00
.gitignore Ignoring the example/media/ directory 2011-08-01 09:13:30 -04:00
CREDITS.txt Filled out all contributors 2011-05-07 20:39:34 -04:00
LICENSE.txt Added in support materials 2009-07-07 07:31:34 -04:00
MANIFEST.in Tweaked the setup.py and manifest for a better result 2010-05-28 09:53:31 -04:00
NOTICES.txt Added in support materials 2009-07-07 07:31:34 -04:00
README.rst Updated docs. 2011-05-16 08:58:37 -04:00
requirements.txt Updated the requirements to django-mptt 0.4.2 2010-12-10 06:54:55 -05:00
setup.py Updated some of the setup info. 2011-05-12 06:58:46 -04:00

Django Categories grew out of our need to provide a basic hierarchical taxonomy management system that multiple applications could use independently or in concert.

As a news site, our stories, photos, and other content get divided into "sections" and we wanted all the apps to use the same set of sections. As our needs grew, the Django Categories grew in the functionality it gave to category handling within web pages.

New in 0.6
==========

**Class-based views**
	Works great with Django 1.3 or `django-cbv <http://pypi.python.org/pypi/django-cbv>`_

**New Settings infrastructure**
	To be more like the Django project, we are migrating from individual CATEGORIES_* settings to a dictionary named ``CATEGORIES_SETTINGS``\ . Use of the previous settings will still work but will generate a ``DeprecationError``\ .

**The tree's initially expanded state is now configurable**
	``EDITOR_TREE_INITIAL_STATE`` allows a ``collapsed`` or ``expanded`` value. The default is ``collapsed``\ .

**Optional Thumbnail field**
	Have a thumbnail for each category!

**"Categorize" models in settings**
	Now you don't have to modify the model to add a ``Category`` relationship. Use the new settings to "wire" categories to different models.

Features of the project
=======================

**Multiple trees, or a single tree**
	You can treat all the records as a single tree, shared by all the applications. You can also treat each of the top level records as individual trees, for different apps or uses.

**Easy handling of hierarchical data**
	We use `Django MPTT <http://pypi.python.org/pypi/django-mptt>`_ to manage the data efficiently and provide the extra access functions.

**Easy importation of data**
	Import a tree or trees of space- or tab-indented data with a Django management command.

**Metadata for better SEO on web pages**
	Include all the metadata you want for easy inclusion on web pages.

**Link uncategorized objects to a category**
	Attach any number of objects to a category, even if the objects themselves aren't categorized.

**Hierarchical Admin**
	Shows the data in typical tree form with disclosure triangles

**Template Helpers**
	Easy ways for displaying the tree data in templates:

	**Show one level of a tree**
		All root categories or just children of a specified category
	
	**Show multiple levels**
		Ancestors of category, category and all children of category or  a category and its children

Contributors
============

* Corey Oordt      http://github.com/coordt
* Erik Simmler     http://github.com/tgecho
* Martin Ogden     http://github.com/martinogden
* Ramiro Morales   http://github.com/ramiro
* Evan Culver      http://github.com/eculver
* Andrzej Herok    http://github.com/aherok
* Jonathan Hensley 
* Justin Quick     http://github.com/justquick
* Josh Ourisman    http://github.com/joshourisman
* Jose Soares      http://github.com/josesoa