Update views.py

using template in view function