Use reverse_lazy to use view names instead of hard coded URLs for the LOGIN_REDIRECT and LOGIN_URL settings
Upgrade distribute package to the latest version before installing any requirement