2009-7-10
| 23:44 | noiiize | egghead, it's nothing about template inheretence now |
| 23:44 | [530] | |
| 23:45 | noiiize | ([530]): oh thanks .. i thought its only for the filters |
| 23:48 | noiiize | ([530]): works fine now |
| 23:48 | noiiize | ([530]): ty |
| 23:49 | davidcramer_ | gg slow query UPDATE IGNORE `%s` SET `downloads_daily` = IFNULL((SELECT AVG(`downloads`) FROM `%s` WHERE `%s`.`map_id` IN (SELECT `map_id` FROM `projects_project_maps` WHERE `project_id` = `%s`.`id`) AND `%s`.`date` >= DATE_SUB(CURDATE(), INTERVAL 7 DAY)), 0) |
| 23:49 | davidcramer_ | :( |
| 23:49 | davidcramer_ | double sub query must not work too well in mysql |
| 23:49 | mib_mib | i defined a helper method in my form class called validate_helper(), and am trying to call it in the clean_myfield(self) method, but I am getting 'global name validate_helper' is not defined - anyone know why? |
| 23:50 | mib_mib | do i have to declare it in a different place or something? |
| 23:51 | hower | is there a manage command to drop all tables (like a clearall) ? |
| 23:51 | mib_mib | manage.py flush clears all the data in the tables |
| 23:52 | mib_mib | manage.py but keeps the table structure |
| 23:52 | hower | but doesn't drop them :( |
| 23:52 | mattmcc | Eh, just drop the DB. :P |
| 23:52 | hower | yeah, but it's on another machine on which i have not much quick access. I'd have to install a sql client i gues. |
| 23:54 | achew22 | does anyone know of documentation on writing a custom database backend? |
| 23:54 | mattmcc | There isn't any. If you're doing that, it's fairly assumed you'd be comfortable learning from the source. |
| 23:56 | achew22 | Fair enough |
| 23:57 | achew22 | mattmcc: do you know how bound it is to SQL? |
| 23:58 | mattmcc | Theoretically you can make a non-SQL backend now, afaik. |
| 23:59 | mattmcc | But I'd guess you'd have somewhat more machinery to reproduce in that case. |
| 23:59 | achew22 | so it doesn't spit out SQL and then expect you to run it? |
| 23:59 | subsume | I wrote a punch card backend |
Page 22 of 22
← Previous
(2,124 total)