Updated views.py for live server