Limited Django infrastructure for tagging

Fixes bug 3034