Use system.getHostname() everywhere
Replace os.environ['HTTP_HOST'] with system.getHostname(), as a
result we do not crash when 'HTTP_HOST' is unset now.
# This module is DEPRECATED!## You should no longer be using django.template_loader.## Use django.template.loader instead.from django.template.loader import *