Django leaks memory in debug mode.

by , under django

If you find your program is leaking memory when using Django model then it is most probably because you are in running in debug mode. Django keeps track of the sql statement generated by the model save in debug mode which tends to be the reason behind leak. It is not a problem unless you are in tight memory scenario which are normally enforced by hosting providers like webfaction. I learnt of this in a hard way but Django doc does mention this. See here