Changing render_to_template to TemplateView - class based view as the function based views are being deprecated by Django