This note is related to the importing line: from Library.main.settings import DOMAIN, DEADLINE, EMAIL_HOST_USER. It's not correct to use directly an importing of your local settings file to get variables from settings file. You should import settings as "from django.conf import settings" instead. it allows to redefine your variables if it's needed.