Adapting to Django 1.6: from django.conf import settings, not from django.db