Flexible template name resolution for Django class-based views.