klipstein/dojango — Issue #67: 67 - django.utils.thread_support is missing in django 1.3 
Author: klipstein
Created: 2011-11-06 13:03:50+00:00
State: open

Following the instructions from http://code.google.com/p/dojango/wiki/GettingStarted with the subversion checkout from dojango and django, I've got:

TemplateSyntaxError at /dojango/test/
'dojango_base' is not a valid tag library: ImportError raised loading dojango.templatetags.dojango_base: No module named thread_support

In changeset 15232 (on 01/17/2011), the module django/utils/thread_support.py was removed from the django project repository.

This broke dojango.utils.dojo_collector causing the "dojango_base" template library to fail on load.

It seams the solution is to use threading.local from the Python Standard Library to get a thread local store instead of using currentThread (you can see this pattern in the changeset I've mentioned before).

I've attached a patch to (hopefully) solve this issue.

Original link: http://code.google.com/p/dojango/issues/detail?id=67