A simple Django app to attach Dublin Core metadata to arbitrary Django objects
A Django plugin app for applying Dublin Core Metadata to any Django model.
This uses the Django contenttype framework and generic relations to apply a varying number of metadata terms to any Django model.
python setup.py install
Add “dublincore” to your INSTALLED_APPS setting:
INSTALLED_APPS = ( ... 'dublincore', )
Run python manage.py syncdb to create the dublincore db tables.
Start the development server and visit http://127.0.0.1:8000/admin/ to attach some Dublin Core metadata to your objects. (admin app must be installed)
Add this to models you wish to add dublincore attributes to:
from django.contrib.contenttypes import generic from dublincore.models import QualifiedDublinCoreElement ... class Thing(models.Model): '''Some Thing with dublincore metadata attached ''' QDCElements = generic.GenericRelation(QualifiedDublinCoreElement)
- Make tests work from clean install
- improve install process (one cmd)
- performance analysis - i’ve read that abstract classes containing datbase fields have a bad performance hit.
- sample views and usage
- Better Documentation
- support dublin core terms (currently just element with “qualifier”)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-dublincore-0.1.tar.gz (5.8 kB)||File type Source||Python version None||Upload date||Hashes View hashes|