Fixed undefined django_crypto.

This is only used when 'socket.gethostbyname( socket.gethostname() )' fails.
This probably only fails on Macs without a fully qualified domain name.
We might need to use socket.gethostname() + '.local' then.
But for now this works.