Adapt the load_template method to use the new algorithm provided by Django 1.7