Used django.conf.settings instead of raw settings