I think this should be
``` if hasattr(settings, "LOGIN_REDIRECT") : ```