Defer import of django.conf.settings

This fixes installation issues related to this file being imported into setup.py
Merge pull request #1 from hzy/patch-1

Defer import of django.conf.settings