Re: ORM using tons of memory and CPU

2009-12-15 Thread Tracy Reed
on tricks: Thanks! > Oh and yes, one last point : how do you run this script exactly ? I set the PYTHONPATH and DJANGO_SETTINGS_MODULE env vars and then do ./purgemail.py -- Tracy Reed http://tracyreed.org pgpSPr64Iuvkk.pgp Description: PGP signature

Re: ORM using tons of memory and CPU

2009-12-15 Thread Tracy Reed
On Tue, Dec 15, 2009 at 09:43:02AM +0200, Jani Tiainen spake thusly: > If you have DEBUG=True setting Django also records _every_ SQL query > made to database and depending on a case, it might use quite lot of > memory. My settings.py contains: DEBUG = False -- Tracy Reed http://trac

ORM using tons of memory and CPU

2009-12-14 Thread Tracy Reed
causing it to take ages sorting a couple million rows since there is no index on date (nor did there need to be, so I thought, since we never select on it). Changing it to received makes no difference to my app but avoids creating another index. Django's is the first ORM I have ever used and these sneak

Re: Django, MySQL, unicode

2009-09-07 Thread Tracy Reed
roken". Indeed it is. If only I could figure out why and what the proper way to handle unicode with django and MySQL is. -- Tracy Reed http://tracyreed.org pgpV8ap5JI6DX.pgp Description: PGP signature

Re: how to deploy an app that gets used by people in multiple time zones

2009-09-07 Thread Tracy Reed
ezone displayed prominently so they know to make the adjustment or change their profile. -- Tracy Reed http://tracyreed.org pgpEwkmUhbJCF.pgp Description: PGP signature

Django, MySQL, unicode

2009-09-07 Thread Tracy Reed
answer on this. Some say no, some say yes. Do I need to do any decoding or anything on data pulled out of the db? I have been told that MySQL should be handling all of this for me. I have been banging my head on this particular error off and on for a couple of weeks and cannot seem to find the solution. Any pointers appreciated. -- Tracy Reed http://tracyreed.org pgpptIxTeQJx0.pgp Description: PGP signature

Re: how to deploy an app that gets used by people in multiple time zones

2009-09-03 Thread Tracy Reed
if there is some slick way I can override a method on datetime objects to automatically have them return the correct timezone when being rendered in a template and always be in UTC when going into the database. -- Tracy Reed pgpNsO1wxrEbn.pgp Description: PGP signature

Re: 500 error when DEBUG = False but not True

2009-08-28 Thread Tracy Reed
debugging output! I didn't think I needed this because I am running an SMTP server on that machine. But it turns out that EMAIL_HOST defaults to localhost and postfix is not listening there. I set it to point to the right place and all is well. Thanks! -- Tracy Reed http://tracyreed.org pgpuzG17

Re: 500 error when DEBUG = False but not True

2009-08-28 Thread Tracy Reed
no info on what the real problem is. Do I have to give django an smtp server address or anything else to enable it to report errors and tracebacks somewhere? -- Tracy Reed http://tracyreed.org pgpQZpJz7BATX.pgp Description: PGP signature

500 error when DEBUG = False but not True

2009-08-28 Thread Tracy Reed
domain.com/unsure [Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112] TemplateDoesNotExist: 500.html, referer: http://mx1.mydomain.com/unsure Any ideas? I am using Django 1.1 on CentOS 5.3 with Apache 2.2.3 in case it matters. Thanks -- Tracy Reed http://tracyreed.org pgpBcZPHuNq9t.pgp Description: PGP signature

Django model attribs and property()

2009-08-19 Thread Tracy Reed
(the value I want to recalc/update on the fly) due to the way it is apparently passed to the ORM as a string. Suggestions? Thanks! -- Tracy Reed http://tracyreed.org pgp8BYTf6ogbc.pgp Description: PGP signature

Re: Value proposition of Rails

2009-03-18 Thread tracy . reed
id1550273 -- Tracy Reed http://tracyreed.org pgparQ2Lu4Bo4.pgp Description: PGP signature