2008-8-7
| 23:37 | jinzo | I don't find it that usable, and I would make an settings value for it, what's your opinion ? |
| 23:37 | Magus- | jinzo: heck if I know |
| 23:37 | Magus- | I don't know jack about the openid stuff |
| 23:37 | FunkyBob | _carson_: very few people use 0.96 these days... at least, people starting out |
| 23:38 | FunkyBob | _carson_: however, yes, it should be serving up the admin media... |
| 23:38 | Killarny | |
| 23:38 | Killarny | Magus-: ^^ |
| 23:38 | jinzo | Magus-, I tought I explained enuf for this, then let's say you need to pass 3< settings to an app, what's the best way to do it ? |
| 23:38 | Magus- | so make 3 settings |
| 23:38 | FunkyBob waits for Magus- to point out the obvious | |
| 23:38 | Magus- | go logic |
| 23:39 | FunkyBob | knew I wouldn't be waiting long :P |
| 23:39 | jinzo | Magus-, currently swillson uses additional view argument for it, and as I respect him I raither asked :) |
| 23:39 | Magus- | Killarny: well obviously that won't match, you aren't giving it a param for the match |
| 23:39 | FunkyBob | (though I was actually meaning for the regex issue :) |
| 23:39 | Magus- | you need to tell it which blog you want the detail URL for |
| 23:39 | FunkyBob | see? BAM! |
| 23:39 | awmcclain | exit |
| 23:39 | japheth | Ok, before I start, I'm fairly sure this is a pretty noobish question, but I can't work it out this morning, so I'm asking here. |
| 23:39 | _carson_ | FunkyBob: I will get the alpha release then, thanks a lot =) |
| 23:39 | japheth | How do I combine QuerySets with a "for" loop? |
| 23:39 | Magus- | jinzo: and I don't care enough to go read up on the actual use and see which makes more sense |
| 23:39 | rozwell | japheth: you don't |
| 23:39 | mattmcc | japheth: You don't, you combine them before that. |
| 23:40 | mattmcc | If, that is, they _can_ be combined. |
| 23:40 | FunkyBob | _carson_: I dont know if that will fix your problem, but it IS the best place to start currently |
| 23:40 | FunkyBob | _carson_: also, all of the online documentation matches it |
| 23:40 | japheth | mattmcc: I'm pretty certain they can be combined... |
| 23:40 | rozwell | japheth: what are you trying to do? |
| 23:40 | mattmcc | japheth: Well, QuerySets are just representations of SQL queries. So... Can your SQL queries be one? :) |
| 23:40 | japheth | yes |
| 23:41 | FunkyBob | wow... gis was only just merged, and there's a bunch of updates already? :) |
| 23:41 | Killarny | Magus-: ahh .. how would a template know which entry it is being passed (without resorting to more data in the context) |
| 23:41 | japheth | I'm trying to get call subcategories, where their parent category id = whatever is in a list of category ids |
| 23:41 | japheth | does that make sense? |
| 23:41 | Magus- | Killarny: that depends entirely on what you already have in it |
| 23:42 | japheth | *call = all |
| 23:42 | Magus- | something wrong with __in ? |
| 23:42 | Magus- | I don't see anything to combine |
| 23:43 | japheth | category ids may have 1 value, or it may have 10 values, and I want the subcategories for any and all category ids... I don't actually know if "combining" querysets is the way to go about this... |
| 23:43 | Magus- | so what if it has more than 1? |
| 23:44 | Magus- | hence the point of __in |
| 23:44 | japheth | ah, I get you now. when you say __in you're referring to some django function... I'll go check the docs for it now :) thanks |
| 23:45 | mattmcc | Have you.. read the db-api docs? :) |
| 23:45 | FunkyBob | mattmcc: reading docs? pfft ... who does that? |
| 23:45 | japheth | not the entire page... it's a long page, and I wasn't sure what I should be looking for |
| 23:46 | japheth | now I am, back to searching it :) |
| 23:46 | rozwell | japheth: the table of contents is pretty helpful in situations like these |
| 23:46 | rozwell | japheth: look on the right side of the page at the top |
| 23:46 | Killarny | how do I get the request.path from within a template? |
| 23:47 | mattmcc | Killarny: Have the request object in the template context, same as any other variable. |
| 23:47 | Killarny | thanks, I was hoping there was already another method to accomplish it |
| 23:47 | japheth | rozwell: yeah, thanks. didn't help in this case though, as I wasn't sure what I was looking for :) |
| 23:47 | Killarny | trying to keep my context as clean as possible |
| 23:48 | rozwell | Killarny: see the request context processor |
| 23:48 | rozwell | Killarny: as documented in the templates for python programmers docs |
| 23:48 | Magus- | the idea of a 'clean' context is silly |
| 23:48 | Magus- | if you need data in a template, it needs to be in context |
| 23:48 | Magus- | end of story |
| 23:49 | Magus- | removing it somehow helps nothing |
| 23:49 | Killarny | well, I can just put request.path in the context before rendering the template, but I wanted to make sure that isn't already there in another fashion |
| 23:49 | Magus- | context is 100% empty by default |
| 23:49 | Magus- | so no, nothing is there |
| 23:49 | Magus- | ever :) |
| 23:49 | mattmcc | If you 'always' need the path, context processors are handy. |
| 23:50 | Killarny | Magus-: except for when you use things like sites framework, which automatically injects context information - so I'm never quite certain that something I just activated isn't going to mysteriously do stuff :) |
| 23:50 | Killarny | yes, I'm paranoid |
| 23:50 | Magus- | no it doesn't |
| 23:50 | mattmcc | Killarny: Sounds like you just need to understand templates better. |
| 23:50 | Magus- | you only get added context info when you use RequestContext |
| 23:51 | Magus- | which you're then telling it to activate context processors |
| 23:51 | Magus- | and RequestContext is not a default context |
| 23:51 | Magus- | hence not empty |
| 23:51 | mattmcc | Unless you're using generic views. |
| 23:51 | johnperspet | evening all ... here's my obscure question of the day ... when overriding model fields that use choices in a modelform why would django stop outputting the "-----" choice? |
| 23:51 | Magus- | but by using them, you're getting that too |
| 23:52 | Killarny | okay, sounds like my concerns are invalid as long as I continue on the path I'm taking, thanks for the input everyone :) |
Page 27 of 27
← Previous
(2,677 total)