Update views.py

comments added on code
get_name function added