fixed name error in views.py, it works!