Updated views.py->_redirect_to_target() to handle script_name being set.