google-code-export / dojango

Automatically exported from code.google.com/p/dojango
Other
1 stars 0 forks source link

django.utils.thread_support is missing in django 1.3 #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 issue reported on code.google.com by gose...@gmail.com on 21 Jan 2011 at 2:04

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, I attached the wrong file...

Original comment by gose...@gmail.com on 21 Jan 2011 at 2:06

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r280. Thanks gosella

Original comment by tobias.k...@googlemail.com on 24 Jan 2011 at 7:57