Update README.rst

Fixed example code for views.py
Merge pull request #6 from tomshen/master

Fixed code in README