Update django tutorial to use new API