A Django app for applying Dublin Core Metadata to any Django model.
Python
Pull request Compare This branch is 17 commits ahead of mredar:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
fixtures
migrations
tests
.gitignore
.travis.yml
LICENSE
README.rst
__init__.py
admin.py
models.py
requirements.txt

README.rst

django-dublincore

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.

[Dublin Core Metadata Terms]

Quick start

  1. Install django-dublincore:

    1. git clone https://github.com/mredar/django-dublincore.git
    2. cd django-dublincore
    3. python setup.py install

    or

    easy_install intall django-dublincore

    or

    pip install django-dublincore

  1. Add "dublincore" to your INSTALLED_APPS setting:

    INSTALLED_APPS = (
            ...
           'dublincore',
    )
    
  2. Run python manage.py syncdb to create the dublincore db tables.

  3. 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)

  4. 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)
    

TODO:

  1. Make tests work from clean install
  2. improve install process (one cmd)
  3. performance analysis - i've read that abstract classes containing datbase fields have a bad performance hit.
  4. sample views and usage
  5. Better Documentation
  6. support dublin core terms (currently just element with "qualifier")