Update views.py replacing direct_to_template with render