You should use the django.shortcuts.render function which is in django since 1.3 and has the exact same contract but without a bunch of dead code running in it.