Django views using html, templates and classes with as_view