2008-8-15

23:43 Magus-
I hope you're not confusing apps and projects
23:44 suhail
Magus-: is it convention to create apps within an app? :P
23:44 Magus-
of course not
23:44 suhail
Main -> Photos -> Tagging
23:44 Magus-
that would be bad
23:44 suhail
word
23:44 Magus-
tagging doesn't apply to only photos
23:44 Magus-
23:44 suhail
It was a general example.
23:44 Magus-
a poor one
23:45 suhail
if you say so
23:46 suhail
I am so used to CakePHP convention that I feel screwed up now when django provides more freedom
23:46 suhail
In Cake it was pretty strict in terms of organization which is actually kind of nice
23:46 Magus-
nice? pfft
23:47 kittyn
that's like saying java is better than c
23:48 suhail
lol
23:50 suhail
Does Django occasionally do an extraordinary amount of queries in some instances due to the lack of intelligence of its ORM? I know CakePHP would not realize there could be two queries that could chunk together data and end up doing 50+ queries.
23:50 suhail
e.g. Each book has a tag, instead of doing 1 query using all the book id's it does a query for each book
23:50 Magus-
suhail: that depends on you
23:51 suhail
Not really, depends on the ORM
23:51 Magus-
no
23:51 Magus-
if you use the ORM as you're supposed to, it works great
23:51 Magus-
if you do something like query a list of IDs and query id by id, it'll do one at a time
23:51 suhail
How will django know that it should ask for all the tags corresponding to a list of book id's as opposed to doing a query for each book id it fetches
23:51 Magus-
if you just grab a queryset it's going to query one list
23:51 Magus-
suhail: without you describing real models, real relations, and the query you try to do, we can't answer that
23:52 Magus-
relations and query directions determine the actions
23:52 suhail
You said a query set can solve that?
23:52 Magus-
no
23:52 Magus-
you misunderstood what I was saying
23:58 crowbar
I'm looking at the modeladmin reference and it says that a field can be set editable=False, but I'm not seeing where this goes. How do I change a field (ForeignKey) to not be editabel?
Page 38 of 38   ← Previous  (3,731 total)