2008-8-17
| 23:49 | yashh | |
| 23:49 | yashh | bye |
| 23:49 | keseph | Or QueryRowsFromTheDB |
| 23:50 | ironfroggy | but the result off iterating over a QuerySet is to execute a select on the table behind my model, yes? |
| 23:50 | keseph | Iterating over a queryset will return every row in the result, yes |
| 23:50 | keseph | The object for each row, that is |
| 23:51 | ironfroggy | but a select cant result with the same row more than once |
| 23:51 | keseph | You're assuming a lot if you think all querysets can be boiled down to a single, simple select |
| 23:52 | ironfroggy | is iterating over a queryset causing a single SELECT query to be executed against my database? |
| 23:52 | keseph | There is some reason it's giving multiple results. There's no line in the source that says `return this row rand() times` |
| 23:53 | keseph | ironfroggy: Depends on your filters and what the objects are. |
| 23:53 | ironfroggy | i understand there is "some reason" im just arguing that there is more reason to never return the same row more than once, ever. |
| 23:53 | harpo_ | hello, I wondering if is it possible to add a short text description for selected fields in the admin interfce? |
| 23:54 | keseph | Have fun trying to prove that |
| 23:54 | sciyoshi | ironfroggy: that's never happened to me, can you dpaste the code |
| 23:54 | keseph | If you want distinct results, use distinct |
| 23:54 | keseph | Just because *you* don't doesn't mean no one ever will |
| 23:54 | wolfboy22 | harpo_: use the help_text attribute |
| 23:54 | neuro_damage | yarakyo_: ok awesome |
| 23:54 | sciyoshi | ah, distinct() |
| 23:55 | shivraj | anyone know what exactly I need to do to register different types of users with registration app ? |
| 23:55 | harpo_ | wolfboy22: ooops I didn't see it, thanks |
| 23:55 | wolfboy22 | harpo_: no prob :) |
| 23:55 | neuro_damage | so what's a regex to grab the whole string of a variable in urls.py? |
| 23:55 | shivraj | I read I need to do something with profile_callback ?? ... Im clueless |
| 23:55 | anhel | Hello guys. I have a question. I |
| 23:55 | ironfroggy | keseph: you are missing the very basic part of what im trying to ask |
| 23:56 | anhel | I found a "abstract" attribute of Model's Meta class. |
| 23:56 | ironfroggy | i mean, the documentation even gives examples of what a queryset will do, as a single select statement. so im under the impression thats what they are driving, because they would HAVE to be doing multiple selects to produce multiples of the same row. |
| 23:56 | anhel | It's marked as "New" |
| 23:57 | phoenixfire159 | okay question, is there any way I can make http requests from django? |
| 23:57 | anhel | Which version of Django will support it? |
| 23:57 | phoenixfire159 | I need to connect to a restful interface |
| 23:57 | phoenixfire159 | server side |
| 23:57 | phoenixfire159 | so should I use urllib2? or is there a django way to do it? |
| 23:58 | wmealing | its just python |
| 23:58 | wmealing | you can do it however you like |
| 23:59 | phoenixfire159 | wmealing: okay |
Page 25 of 25
← Previous
(2,438 total)