def env(event): settings.SITE_URL = 'http://example.com' settings.SITE_NETLOC = urlparse(settings.SITE_URL).netloc