Django cleanup code
1 answer
You can use python with instruction. This allows you to clean up after yourself. That is, the files are closed.
Here's a good tutorial: http://effbot.org/zone/python-with-statement.htm
0
source to share