EliAndrewC / sideboard

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Django sometimes grabs modules directly from sys.modules #72

Closed EliAndrewC closed 10 years ago

EliAndrewC commented 10 years ago

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.