Use with statement from the future.
Note on compatibility.
Move to latest Django release.