optimisation 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
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
y in this case 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
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
bel
the timezone displayed prominently so they know to make the adjustment
or change their profile.
--
Tracy Reed
http://tracyreed.org
pgpEwkmUhbJCF.pgp
Description: PGP signature
ng into
the db? I cannot seem to get a clear 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
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
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
pgp
nfo 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
: http://mx1.mydomain.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
this as an access to
"Score" (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
-linux-4/#id1550273
--
Tracy Reed
http://tracyreed.org
pgparQ2Lu4Bo4.pgp
Description: PGP signature
see that the model given there is different from the one in the
book.
--
Tracy Reed
http://tracyreed.org
pgpLrqi6QaTpN.pgp
Description: PGP signature
13 matches
Mail list logo