try django's class-based view
Merge branch 'master' of github.com:yuealves/class_based_view