2008-3-1

23:19 imgrey
mattmcc, yes, I know. but I want user rating system
23:19 pjcrosier
i've done some stuff myself but i have nothing public, the only confusing bit is tracking peers / handling announces
23:20 pjcrosier
'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128). You passed in <django.utils.functional.__proxy__ object at 0x8508f0c> (<class 'django.utils.functional.__proxy__'>)
23:20 pjcrosier
EVIL :D
23:20 Freak
mattmcc: that like.. works.
23:20 Freak
I changed the oto to mtm..
23:20 mattmcc
Eh? If you wanted a one-to-one relationship, isn't many-to-many, like, different?
23:21 pjcrosier
imgrey, you could nudge the geektorrent guy for some code
23:21 imgrey
pjcrosier, ok, I'll try
23:21 Freak
ma thats like.. giright
23:22 Freak
argl
23:22 Freak
but I wonder if it breaks my concept
23:23 mattmcc
Well, I suggested a unique FK because it's very similar, semantically, to a OneToOne.
23:23 Freak
oh ok
23:24 mattmcc
Here's the thing. As currently implemented, a OneToOne means one end of the relationship doesn't have its own PK, it just shares the other's.
23:25 mattmcc
But if that table also has, say, a ManyToMany, then it has to have its own PK, to reference in the intermediate table.
23:25 mattmcc
Conflicting requirements.
23:27 Freak
I.. I dont understand it but I deleted the sqlite db file, touched a new one, ran syncdb again and it worked.
23:27 elsigh
can django_session just use cookies and not a database?
23:28 mattmcc
No, session data is stored server-side.
23:28 mattmcc
You can use cookies, if you want, of course..
23:29 Freak
mattmcc: .. thanks anyways, I have no idea what happened.
23:29 Freak
I'll see if the sql differs..
23:30 mattmcc
Yes, FKs work differently from OneToOnes.
23:30 Uz
elsigh: you can use memcache
23:30 Uz
etc
23:30 Uz
and for authorization, any other backend
23:30 Uz
than ModelBackend
23:31 Freak
mattmcc: I mean I didnt change it.
23:32 Freak
I have a MTM and a OTO now
23:32 swissmade
hiho
23:32 Freak
and it produced just the same output with one line missing - the photo_id it had before.
23:32 Freak
I don't get it.
23:32 Freak
but.. actually I dont mind. if it works, thats fine :)
23:32 Freak
so I can go on coding :)
23:47 prairiedogg
another simple question here: I'd like to write a short script in python using the db API to manipulate data - is there a good way to get my project on the python path so I can write the imports like I would in the rest of my project code?
23:48 prairiedogg
sorry - I know this is probably a basic python question
23:48 mattmcc
Set your PYTHONPATH appropriately?
23:48 prairiedogg
this is where my upbringing on a GUI os kills me :)
23:49 prairiedogg
[mattmcc] is that done within the script itself?
23:49 ledil
hello
23:49 mattmcc
prairiedogg: Well, it's typically done in your shell.
23:50 mattmcc
But yes, you can change sys.path from within a script.
23:50 prairiedogg
ok, I'll go read the FM...thanks very much matt
23:50 ledil
ive started with translations but it doesnt work, what I have done is used gnugettext in my model with verbose_name. After this I use make-messages, created the translations, compiled it and when I visit the site the text will not be translated. Ive added also the middleware and used RequestContext in my render_to_response, have I miss something ?
23:52 ledil
any help ?
23:55 lg_
hello, is there any ticket system written using django?
23:57 Klowner
anyone know what's required to get tracebacks to show up in apache error logs (using mod_python) ?
23:59 Magus-
django tracebacks? you don't
Page 11 of 11   ← Previous  (1,049 total)