Skip to main content

Django tool to tag objects and export them to Zotero

Project description

django-zotero is a django app that provides a generic formset to tag any django object with Zotero metadata. Tagged object are easily exportable to Zotero in one click.


First of all, it is needed to have pip installed on your system. It is strongly recommended to install virtualenv and virtualenvwrapper to take the most advantage of pip.

To install pip, go to

To install virtualenv, go to

To install virtualenvwrapper, go to

Now install django-zotero:

$ pip install django-zotero


To use django-zotero, follow the next steps:

  1. Django settings: add the app name to INSTALLED_APPS in

  2. Administration side: add the following code to

    1. Import the class TagInlineAdmin [1]:

      from zotero.admin import TagInlineAdmin
    2. For each model you wish to tag, add to its admin class:

      inlines = (
  3. User side: add the following code:

    1. In

      1. Import the function get_tag_formset [2]:

        from zotero.forms import get_tag_formset
      2. In the view that manages the tagged object, instanciate the formset and save it:

        tag_formset = get_tag_formset(
                'item_type': 'Document type',
    2. In the template that manages the object:

      1. Import the template tag zotero_inline_tags [3]:

        {% load zotero_inline_tags from zotero_inline_extras %}
      2. Render the formset:

        {% zotero_inline_tags formset %}
    3. In the template that renders the object:

      1. Import the template tag zotero_tags [4]:

        {% load zotero_tags from zotero_tags_extras %}
      2. Render Zotero metadata:

        {% zotero_tags
            output_method="meta" %}

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-zotero-0.4.tar.gz (136.3 kB view hashes)

Uploaded source

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