Lines 13 - 31 being removed here weren't there when I started, and are an alternate solution to my lines 13 - 19.

If you go with A1 P's solution, just quote the uses of $DJANGO_VIRTUALENV_NAME_MAP (and use the "function hput {" syntax to stay consistent ;)