fixed ImportError of django.utils.timezone.now for django<=1.3
allow HOSTNAME without trailing slash