updated patch for django 1.6
fix for issue with read-only sqlite database