2008-6-29
| 01:57 | cramm | Hi guys, is there any way to see the SQL a query generates apart from the setting.DEBUG=True plus from django.db import conection ; print connection.queries method? |
| 01:57 | cramm | I'm tracking a SQL generation-related Django test suite failure under win32 and can't get to see the offending SQL: http://dpaste.com/59719 |
| 02:25 | empty | cramm: if you're using trunk just str(queryset) |
| 02:25 | empty | or queryset.query.as_sql() |
| 05:01 | akaihola | Hi, could someone take a look at #7061? I suspect telenieko misunderstood my description when closing the ticket. I didn't re-open just in case it's me who's off the track. |
| 05:01 | DjangoBot | |
| 05:01 | akaihola | More specifically, doesn't this improve i18n docs to better describe what Django actually does: http://code.djangoproject.com/attachment/ticket... |
| 17:55 | Alex_Gaynor | jkocherhans: Is the plan to merge NFA before the EuroPython NFA sprint, or before the alpha sprint? |
| 17:56 | jkocherhans | Alex_Gaynor: I wanted to do it before the EuroPython sprint, but I don't think it's gonna happen |
| 17:57 | Alex_Gaynor | What issues are remaining that are blockers(aka any good tickets to work on)? |
| 17:57 | jkocherhans | I have one last major API change I'd like to make, but I haven't had time to write it all up yet |
| 17:57 | Alex_Gaynor | Or is it mostly the registration stuff? |
| 17:57 | jkocherhans | brosner knows better than I do at this point. I haven't been following very closely for the last couple of months :( |
| 17:58 | Alex_Gaynor | I think he says it's ready for merge :D |
| 17:58 | jkocherhans | that's good news :) |
| 18:00 | jinzo | that would own, I'll start a project soon - It would be great if it would get merged soon :P |
| 22:39 | jinzo | may I ask if there's a special design decision on why send_mail is blocking ? I think it would be logical if it wouldn't block. |
| 22:52 | gavbaa | Personal opinion: if you want send_mail to be non-blocking, use a local mail queue on the webserver. |
| 22:53 | gavbaa | They're easy to run, take no time to deliver to, and have no effect on the final message where the mail is being relayed to. |
| 22:53 | gavbaa | If send_mail was non-blocking, there would be *all sorts* of problems with web requests finishing before send_mail was done. |
| 22:54 | insin | "Check back later to see if your email was successfully sent!" :) |
| 22:54 | gavbaa | As it is, the Django folks try to avoid claiming that threading is even supported within the framework, so any form of async I/O is going to get a definite -1 around here. |
| 23:10 | mattmcc seconds the local MTA opinion. | |
| 23:11 | mattmcc | I have a hard time taking a *nix box seriously that doesn't have a proper local daemon, even if all it does is forward upstream. |
| 23:12 | gavbaa | There are reasons for it in an environment that requires a little more paranoia than usual, but at that point you will have other restrictions that will make a blocking e-mail send the least of your concerns. |
| 23:16 | jinzo | looks like I'll do a daemon that forwards, as the mail is managed by 3rd party |
| 23:17 | jinzo | and I tought first that smtp to it would be easy & doable, but now it timeouts |
| 23:19 | gavbaa | A daemon on the local box might even be overthinking it. What about just a cron job that runs every minute? |
| 23:52 | sakyamuni | I'm trying to get access to the database name from the django testing framwork test and when I print settings.DATABASE_NAME it doesn't print out the test database name. From the source it seems like it sets the DATABASE_NAME to the test database. |
| 23:53 | cramm | Hi guys, anyone using Mac OS X? |
| 23:54 | cramm | sakyamuni: sakyamuni what about settings.TEST_DATABASE_NAME? |
| 23:55 | sakyamuni | sakyamuni: I try to print that and TEST_DATABASE_NAME is not in settings. |
| 23:55 | sakyamuni | 'module' object has no attribute 'TEST_DATABASE_NAME' |