Support Django 1.8's Template Engine class.

Introduced in django/django@572cdb43917ad860acaaffecd60b4e92599ae3eb