Update views.py

Using Jinja2