So it seems that while Django usually does its imports the normal way, it occasionally just grabs something directly out of sys.modules instead of doing something sensible like saying import sys.modules.
The only time I've run into this so far is when rendering datetime objects in Django templates. Their renderer tries to grab django.conf out of sys.modules which blows up. I can work around this in several ways, but since Django is so popular, we may eventually want to code a workaround directly into Sideboard.
So it seems that while Django usually does its imports the normal way, it occasionally just grabs something directly out of
sys.modules
instead of doing something sensible like sayingimport sys.modules
.The only time I've run into this so far is when rendering datetime objects in Django templates. Their renderer tries to grab
django.conf
out ofsys.modules
which blows up. I can work around this in several ways, but since Django is so popular, we may eventually want to code a workaround directly into Sideboard.