2008-8-8

23:31 trhaynes
23:31 mattmcc
trhaynes: Well, settings are just python modules.
23:31 Killarny
stp2007: thanks, looking
23:32 mattmcc
So you can have your common settings, then in the per-site settings, import from the central one and set your site-specific stuff.
23:33 stp2007
trhaynes, funny your question was almost the reverse of my situation. almost.
23:34 trhaynes
mattmcc: ah, I understand. thanks
23:36 wattz
anyone have any idea why this: http://dpaste.com/70292/ is giving me an error of: Cannot convert float to Decimal. First convert the float to a string : when the field in the model is: suspended = models.IntegerField()
23:36 wattz
?
23:36 wattz
and in the db it's an int
23:40 wattz
eh so weird
23:44 wattz
aww
23:44 wattz
it's so quite
23:45 linolium_
how can I use django models without using Django?
23:45 Magus-
you don't
23:46 Magus-
if you mean how do you use them without being in a webserver, that's easy
23:46 linolium_
but I'd like to
23:46 wattz
Magus-: any idea on my question please sir?
23:46 mattmcc
linolium_: Google 'django standalone'
23:46 Magus-
wattz: do you see me answering it?
23:46 wattz
haha
23:46 wattz
prolly cause you just don't like me
23:46 wattz
lol
23:47 mattmcc
That must be it.
23:47 truebosko
don't mess with the magus :)
23:47 wattz
yeah, dont want to crack the ivory tower
23:48 danfo
wattz: I have about two minutes experience with python so far, but could it be that request.POST['id'] is a string?
23:49 wattz
well holyshit
23:49 p--
though that doesn't make sense for the error wattz pasted
23:49 wattz
p--: i was just writting that
23:49 danfo
there ya go :P
23:50 p--
wattz, oh nice.. you were asking for help by giving inacurate information..
23:50 wattz
huh?
23:51 danfo
i have a question - is it possible for urlpatterns to match on subdomain too?
23:51 Magus-
no
23:51 danfo
so an easy way for example.com and my.example.com to go to different views
23:51 Magus-
danfo: also, post data is ALWAYS strings
23:52 p--
wattz, the error you pasted said "First convert the float to a string", and the POST data was already a string.. which is why I said the error didn't make sense
23:52 wattz
p--: exactly
23:52 danfo
yep
23:52 p--
and you said "<wattz> p--: i was just writting that" which I took to mean that the error you pasted was not accurate ?
23:52 wattz
writing what you said
23:53 wattz
nevermind, i will just do the sql by hand
23:56 linolium_
mattmcc: thanks
23:58 danfo
any best practice or suggestions for doing that then? (example.com and my.example.com being sent to different views)
23:58 wattz
short/easy, use mod_rewrite
23:59 p--
Page 28 of 28   ← Previous  (2,746 total)