Updated the settings file with ALLOWED_HOSTS, TEMPLATE_DEBUG=True in any case and only import settings if told to.