Switched from direct_to_template to TemplateView.as_view