Update views.py

manually pasted based on amazon EC2 dev