On Fri, Aug 8, 2008 at 10:51 PM, mrts <m...
> ...is http://bugs.python.org/issue2090 . This is a common idiom for
> importing modules dynamically in Django.
Oh __import__ with [''] as the fouth parameter, I had the following message in
draft for the "post_save signal triggered twice" thread a couple of week ago
and never dare to send it (I've update the grepping over the tree to current
Regarding the use of __import__, there are some notes in ticket 6579 about
calling it with a empty string as the fourth parameter having the effect of
initializing the module twice (there is also a link to a ticket in the
Python bug tracker.)
When pointed to it in a comment to #6587, Řyvind Saltvik
implemented another loading strategy in the latest patch for that ticket.
All this in the context of (the maybe 1.0 feature) of removing the hacks in the
template tag loading code, but could this also be related to the repeated
triggering of signals?
Searching over the Django code as of r8255 finds 28 occurrences of such a
pattern, some of them when loading user project or application code from the