1. the basic function of notes app.

it's from following tutorial. http://lethain.com/intro-to-unintrusive-javascript-with-django/
fix the problem of generic view because of the old version django in the tutorial.
to be fixed:
1. csrf error message
2. database initial , sync db commond issue.