Use CBV TemplateView instead of deprecated direct_to_template
Use {% url 'xxx' %} instead of {% url xxx %}