Skip to main content

A simple Django app to attach Dublin Core metadata to arbitrary Django objects

Project description

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. git clone https://github.com/mredar/django-dublincore.git

  2. cd django-dublincore

  3. python setup.py install

  4. Add “dublincore” to your INSTALLED_APPS setting:

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

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

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

django-dublincore-0.1.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file django-dublincore-0.1.tar.gz.

File metadata

File hashes

Hashes for django-dublincore-0.1.tar.gz
Algorithm Hash digest
SHA256 d00fc3e4533bea5cf730c6e7cb86f2be06c1fcb9c5426bc4c62b9cf80f5dd833
MD5 74d4cb9e61224545c7f97245dd3ddb2d
BLAKE2b-256 f12a15a05441f88dff32d0269b52fc2ab5fc2efc0e673636d4f47de4d78cd776

See more details on using hashes here.

Supported by

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