Fix references to direct_to_template, depreciated in django 1.4