seems there is a bug in that blog-post. You have to set:
ret = {'success':True}
on line 4 of that example. Otherwise line 10 will fail. {success:True}
is just added in the json_response decorator after this function was
called and it wasn't set in the returned dictionary.
Regards, Tobias