2008-8-18
| 23:32 | suhail | well imagin I was making a gaming network and I wanted to make one game like stracraft and anothe game like diablo--the games are quite different |
| 23:32 | suhail | but I want them residing on the same site |
| 23:32 | suhail | diablo has things like spells and characters while starcraft has things like buildings, units, and races |
| 23:32 | mattmcc | johannix: You don't have to go through StringIO, you can pass the uploaded file right to Image.open() |
| 23:32 | suhail | I want to seperate the logic for those things except you have to create a new app |
| 23:36 | johannix | mattmcc: not sure if i follow. even though ur comment seems pretty simple. |
| 23:37 | johannix | so ur saying i dont need the resized_image object? i can do it with temp_image? |
| 23:37 | suhail | quantumsummers|c: did you follow on any of that |
| 23:38 | quantumsummers|c | suhail: sorry, reading back |
| 23:38 | Glenjamin | you should be able to use the same apps for most of that |
| 23:40 | quantumsummers|c | suhail: if you really wanted to develop them completely separate, you can do some really interesting things with the new URL stuff, like making one project respond to a particular sub dir (example.com/starcraft) |
| 23:40 | quantumsummers|c | so you have a mother site example.com then the games are on .com/games1 .com/game2 etc |
| 23:40 | sushant354 | I am using django development server for testing and serving css files through the django static interface. However, firefox is caching my css files and any modification and any modification is not immediately seen. Any suggestions on how to disable css caching? |
| 23:41 | quantumsummers|c | sushant354: press shift when you reload the page |
| 23:41 | quantumsummers|c | or ctrl+r I believe |
| 23:42 | sushant354 | quantumsummers|c: you are right ... |
| 23:42 | sushant354 | it was so simple .. and I could not find it on the internet ... thanks a lot |
| 23:42 | mattmcc | Internet fail. |
| 23:42 | sushant354 | ha ha |
| 23:43 | Magus- | ctrl+f5 does it too |
| 23:43 | faheem | So, if I have a python cgi script, is it easy to call it from inside a django view or similar? If so, can someone point me to an example. I seem to keep running across wsgi when I look for such things, so that is probably relevant. |
| 23:43 | neuro_damage | I'm looking for a generic view that I can use in order to display a list of objects, how would I do this easily? |
| 23:45 | mattmcc | neuro_damage: Um. object_list? :) |
| 23:46 | neuro_damage | mattmcc: ok |
| 23:47 | neuro_damage | mattmcc: and I suppose I can do cool things like filter stuff out and it works really well with templates :) |
| 23:47 | mattmcc | Well, that depends on what sort of filtering you want to do. |
| 23:48 | mattmcc | It shouldn't be the template's job to determine which rows of a queryset to show you; the queryset should only have what you want. |
| 23:48 | neuro_damage | true, well what I want is to using jquery ui tabs, which I already have working generate a bunch of groups and then populate them automagically :) |
| 23:49 | neuro_damage | for instance using one of the fields of the object if we're currently at an object that contains the same location as the tab we're currently in then draw it there. |
| 23:50 | mattmcc gets dizzy. | |
| 23:50 | neuro_damage | heh |
| 23:50 | neuro_damage was kind of dizzy typing that message | |
| 23:50 | brentp | hi, with django trunk, i'm getting an error about my browser not accepting cookies, but it does. though test_set_cookie() fails. it's something about my app, becuase a small test app works fine. |
| 23:50 | crc32 | In the exception handler I see these obscure comments |
| 23:50 | brentp | i know that's vague, but any ideas on where to look? |
| 23:50 | quantumsummers|c | "Magus-: ctrl+f5 does it too" maybe on winders, ctrl-f5 takes me to my fifth virtual desktop\ |
| 23:50 | Oog | i have a model with a CharField and i want to do a filter equivalent to the sql query TITLE like "%word1%word2%" how can i do this? |
| 23:51 | Magus- | quantumsummers|c: not my fault you hijacked the hotkey |
| 23:51 | quantumsummers|c | :P |
| 23:51 | brentp | sessions are saved in the database. |
| 23:51 | mattmcc | quantumsummers|c: Well, FF can't do anything about the window manager grabbing the key it uses first. |
| 23:52 | Zalamander | Oog custom SQL |
| 23:52 | mattmcc | Suggestion: Use the Windows key for your window manager instead. |
| 23:52 | mattmcc | <Super_L>5 |
| 23:53 | Oog | Zalamander how can i execute a custom query |
| 23:53 | fUD | Hi |
| 23:53 | Oog | oh wait maybe it will work |
| 23:54 | Oog | title__icontains="word1%word2" |
| 23:54 | Oog | based on django docs it should turn that into where title ILIKE "%word1%word2%" right? |
| 23:54 | Killarny | |
| 23:54 | SmileyChris | Oog: nope, it'll escape it |
| 23:55 | farastray | thank god for that |
| 23:55 | Oog | oh :( |
| 23:55 | SmileyChris | .filter(Q(title__icontains='word1')|Q(title__icontains='word2')) |
| 23:55 | SmileyChris | Oog: ^ |
| 23:55 | Zalamander | that isn't the same though |
| 23:55 | SmileyChris | nope, it's not |
| 23:56 | SmileyChris | he'll need to use extra ;) |
| 23:56 | Oog | ? |
| 23:56 | Zalamander | what goes in extra() to specify that word1 must appears before word2? |
| 23:56 | JoinTheHell | anyone here using sorl-thumbnail with newest trunk? |
| 23:57 | mattmcc | Zalamander: Ick. I suppose you'd end up getting the string position of both words. |
| 23:57 | SmileyChris | JoinTheHell: i've been meaning to update it |
| 23:58 | JoinTheHell | SmileyChris ah cool.. well I "accidentally" updated my production server.. and one site makes heavy use of sorl.. and now there are no pics anymore *g* |
| 23:58 | mattmcc | Revert? :) |
| 23:58 | JoinTheHell | if I'd knew what was my old rev |
| 23:59 | mattmcc | Was it pre-nfa? |
| 23:59 | JoinTheHell | no |
| 23:59 | mattmcc | So start from 7990 or so. |
Page 37 of 37
← Previous
(3,669 total)