Update get_development_alias in middleware.py

get_development_alias was not catching when the host was 127.0.0.1. Instead of assuming a dev environment will only be ran using a certain hostname format, get_development_alias should just use settings.DEBUG to determine if it's a development environment.