Defer import of django.conf.settings

This fixes installation issues related to this file being imported into setup.py