Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
This is for consistency with Template.render. It adds a little bit of knowledge about HTTP requests in django.template.loader but I think consistency trumps purity.
Deprecated features aren't tested.