Wrote views.py to accept http requests