i use psql, after i sync db psql ctreate table , and my row (integerfield) has been set unique
why?
hoot has quit
FunkyBob
Odigem: the whole row? or just one field
edulix
FunkyBob: uhm, okey let me reduce it
FunkyBob
?
Odigem
FunkyBob: one filed
bpietro joined the channel
mgrouchy joined the channel
siovene
Hi, I have a ContentType related question. I have a model with a GenericForeignKey, then a Form, and a CreateView. How do I set the content_type of the model, when it's saved?
d3m0ff is now known as d3m0n_
Should I put the model name in the url, for instance? like /comments/save/123/some_model_name/ ?
(where 123 is the id of the object I'm trying to save a comment for)
urlwolf has quit
n3storm has quit
hoot joined the channel
seagreen joined the channel
the_rat has quit
the_rat joined the channel
bpietro
Hi, after setting up new project w/ one app I got rt error 'maximum recursion depth exceeded' in module 'django/utils/translation/trans_real.py in get_language' going to admin page. LANGUAGE_CODE in settings is 'it-IT'. Another my projects w/ the same settings run well. Googling I found only pastebin error page http://pastebin.com/DqHXebvH , mine is identical. Any hint? tnx
the_rat has quit
siovene: why do you want do it so?
ho, I miss it, you wrote it above
*oh
maybe /comments/save/(?P<number>\d+)/(?P<model>.+)/ and the page form must provide modelname (or model_id, some kind of model identification)
is it possible to use a name/namespace for the logout parameter "next_page" ??
leo2007 has quit
inad923 joined the channel
or is it possible that i get redirected to the page where i logged out ?
kezabelle
?next={{ request.path }} should probably do it
bluepnume joined the channel
w0ng joined the channel
ljubak joined the channel
cebor
ok thx
BabySuperman
so the default cache_page decorator -- how does it generate the key? I'm looking at the source and it's cray-zay. Or, how do I dump locmem current keys?
cramm has quit
Ixbidie has quit
b3free joined the channel
Scottyob has quit
bpietro
once more: after setting up new project w/ one app I got rt error 'maximum recursion depth exceeded' in module 'django/utils/translation/trans_real.py in get_language' going to admin page. LANGUAGE_CODE in settings is 'it-IT'. Another my projects w/ the same settings run well. Googling I found only pastebin error page http://pastebin.com/DqHXebvH , mine is identical. Any hint? tnx
sudobangbang joined the channel
kezabelle
gosh I hate stacktraces pasted from the pretty 500 page :o)
svvitch joined the channel
florinm joined the channel
bluepnume has quit
trang joined the channel
pombreda
bpietro: you should paste your model in a pastebin. You likely have some incorrect reference to self somewhere that makes it goes in a tailspin, such as in __unicode__
svvitch
how can i serve static files on dev server just from directory where static files was collected, not from all app directories ?
bpietro
I thing it isn't right reason. just made test app with only one model (no circular references possible) and got the same error
ugh, you know you've broken things horribly when your bound field's initial data is correct, but the rendering isn't ;)
naro has quit
*sigh*
bpietro
and the error was both in my app and in test app 'cose I'm lazy and modified django/conf templates (wrong modified) so error was generated by startproject ;)
kezabelle
alright, hands up who knows wtf calls a Widget's render method?
thehandler joined the channel
aha, possibly as_widget()
BabySuperman
I am doing cache.set(key) and cache.get(key) ... the keys are the same value but it's not getting the value, just says it doesnt exist... hrm...
yac joined the channel
kezabelle
probably doesn't exist then :o)
svetlyak40wt has quit
how have you configured your backend?
yac
I have ModelAdmin.list_filter = ('a', 'b', 'c') ... while `b` is the same type as `a`, that is ForeignKey .. but for some reason the options for b ...
arent shown, wait, there is only thing
and does no error
BabySuperman
kezabelle, god I'm so mad right now, just found the problem... it was already affixing ':1:'
yac
riight, if there is only one choice, it wont display the field at all
BabySuperman
that's like the 5th time i've gotten smashed by that
prefixing*
kezabelle
haha
least you fixed it ;)
BabySuperman
I was already adding it ':1:', then I add a space around it to see wtf is going on, and the exception shows me the ACTUAL key that's getting looked up, WHAMMY!
yeah ty kezabelle :)
Browser joined the channel
amigo has quit
arturrro has quit
mgrouchy has quit
cyberdelia has quit
w0ng has quit
yac has left the channel
amigo joined the channel
rmarko has quit
corehook joined the channel
corehook
hi all
I want to add a functional ranking, provided that the registered user has the right to give only 10 assessments per day. For this, I created a model http://dpaste.org/3giL4/, but now I'm adding the rating can not understand how to select all records from the database for the present day