Fix django settings import issue.

when we use django.conf.settings, we get an object, NOT a Python module,
so setup_environ will fail when it attempts to access module-specific
properties.