Re: django ORM memory leaks in standalone script

2010-06-05 Thread kanniga sivasubramanian
hello yakovenko sir, I think your databse_user and database_password are incorrect. I had affected by this problem. You will give correct username and password of mysql. On Sat, Jun 5, 2010 at 1:02 AM, tmitchell wrote: > Holy reading comprehension, Batman.  

Re: django ORM memory leaks in standalone script

2010-06-04 Thread tmitchell
Holy reading comprehension, Batman. Just saw you have DEBUG off, ignore previous comment. On Jun 4, 10:34 am, Кирилл Яковенко wrote: > I have tried this method, but it didn't give any results. > I suspect that this is due to incorrect settings of the database or

Re: django ORM memory leaks in standalone script

2010-06-04 Thread tmitchell
Are you running with DEBUG on? I've noticed the same memory growth in standalone scripts when in DEBUG mode. It may be related to this: http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-debug On Jun 4, 10:34 am, Кирилл Яковенко

Re: django ORM memory leaks in standalone script

2010-06-04 Thread Кирилл Яковенко
I have tried this method, but it didn't give any results. I suspect that this is due to incorrect settings of the database or connect to it. 2010/6/4 Dj Gilcrease > On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote: > > import os > > import sys > >

Re: django ORM memory leaks in standalone script

2010-06-04 Thread Dj Gilcrease
On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote: > import os > import sys > os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings' > sys.path.append('/md/lib') > from django.db import close_connection, reset_queries > from md.mddata.models import Info > def test(): >  for i

django ORM memory leaks in standalone script

2010-06-04 Thread yakovenko
Hello guys, I use django ORM in standalone daemon. And It sucks more and more memory. I have created small script for testing: --- import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings' sys.path.append('/md/lib') from