Updated views.py corrected requestHandler