2008-3-1

22:39 JucaBlue1
thanks
22:39 Uz
That might be your problem then. ;)
22:39 elsigh
anyone have pointers for debugging i18n?
22:40 JucaBlue1
I'll try that
22:40 aa_
insin: ok thanks
22:40 elsigh
all of my gettext('msgid') calls simply result in 'msgid' and not the appropriate translation
22:40 JucaBlue1
Uz: thanks
22:40 JucaBlue1
it worked
22:40 aa_
is there a way to have a rich text editor of html in the Admin interface?
22:40 Uz
np :)
22:41 JucaBlue1
I have just switched from the 0.96 tutorial
22:41 elsigh
I have the django.po file inside of conf/locale/en/LC_MESSAGES
22:41 JucaBlue1
Uz: maybe this is a common problem for newbies
22:41 Uz
Probably
22:43 Uz
JucaBlue1: notice, that if you do use __unicode__, you'll have to make sure the string you return is actually a unicode string. I remember having had trouble with that.
22:48 elsigh
I've got to be doing something so stupid here, but I'm at a loss..
22:48 elsigh
The default is to just give you the msgid when you do _('msgid') right?
22:48 neokeats
since the default_charset is utf8 we should not have to add # -*- coding: utf-8 -*- ...
22:50 Kakeman
moderate_group = models.ForeignKey(django.contrib.auth.group) is this ok?
22:50 Magus-
lwnjake: why are you not simply adding the project's parent directory to PYTHONPATH ?
22:51 Magus-
I've said to do that several times, and it would fix it so the proper project.app.foo references work
22:51 Magus-
you can even do it from inside a script, if you're trying to do a standalone script that uses django
22:51 lwnjake
isn't that essentially what i am doing when i play with sys.path in the utility?
22:51 Magus-
yes, sys.path works
22:52 Magus-
so long as you add the project's parent dir
22:52 lwnjake
it just seemed a bit ugly
22:52 Magus-
it isn't
22:52 Magus-
Kakeman: of course not, that isn't an accurate reference :) you need to import it correctly, then reference the imported class
22:52 lwnjake
or so that the DJANGO_mumble_mumble env var points to the right level, yes?
22:52 Magus-
e.g. "from django.contrib.auth.models import Group"
22:53 Magus-
lwnjake: no, the project's parent dir should be the one on pythonpath, period - then DJANGO_SETTINGS_MODULE should be project.settings
22:53 pjcrosier
neokeats, i'm still plugging at this :D
22:53 Freak
d'uh. I get a similary error using mysql. "Multiple primary key defined".
22:53 Magus-
ack, gotta run
22:54 Freak
-y
22:54 Freak
~-.
22:55 Kakeman
Magus-: i'm noob, thanks
22:55 Kakeman
:P
22:56 elsigh
anyone wanna help a brother with i18n? I've been banging my head against the wall for 2 hours on something so silly
22:56 robvdl
aa_: yes, I have embedded TinyMCE into the admin
22:57 robvdl
22:58 neokeats
pjcrosier: that hard ? :)
22:58 mattmcc
Freak: When do you get that?
22:59 Freak
I defined a model with two ManyToManyFields
23:00 Freak
then I run sqsyncdb
23:00 Freak
I had the same problem with sqlite before..
23:01 Freak
sorry, my net connection is a mess, I can barely what I see in my screen irssi :)
23:01 Freak
*see what I write
23:02 mattmcc
Well, that makes effective troubleshooting difficult..
23:02 aa_
robvdl: nice work, thanks
23:02 neokeats
me with 3 ManyToMany i ve got : _mysql_exceptions.Warning: Data truncated for column 'name' at row 1
23:02 Freak
mattmcc: what exactly?
23:03 Freak
mtmfields as such?
23:04 mattmcc
Freak: No, barely being able to see your IRC windows.
23:05 Freak
mattmcc: d'uh. ;)
23:07 mattmcc
Freak: Look at the output of manage.py sql for whichever app is causing the problem.
23:07 mattmcc
See if it's trying to define more than one PK.
23:08 Freak
well it does.
23:08 mattmcc
Paste your model and the output of manage.py sql?
23:08 Freak
I'm trying to connect to a pastebin but as I said.. this wifi sucks :)
23:09 prairiedogg
got a weird situation with current SVN version of django, postgres 8.2 db, mod_python
23:09 prairiedogg
I'm trying to sort a table by a column...I specified it in the ordering attribute of my models.py Meta class...
23:09 prairiedogg
and getting an error that is truncating the name of the column I'm specifying
23:09 prairiedogg
and saying that it doesn't exist
23:10 prairiedogg
manual order using .order_by() in the db API works fine
23:10 Freak
here's the model: http://pastebin.ca/924999
23:10 prairiedogg
seems like a pretty weird error - am I missing something obvious?
23:12 Freak
23:12 prairiedogg
name of the column is: name_en
23:12 pjcrosier
prairiedogg, what does your 'ordering' look like?
23:12 prairiedogg
ordering = ('name_en')
23:12 pjcrosier
it needs to be a list, i think
23:13 pjcrosier
['name_en']
23:13 prairiedogg
docs say list or tuple
23:13 insin
you're missing a ,
23:13 prairiedogg
I'll try list.
23:13 insin
('name_en',)
23:13 pjcrosier
if it was a tuple, it would need the , ^^
23:13 insin
('name_en') is a string
23:13 prairiedogg
sigh
23:13 prairiedogg
sorry guys
23:13 Freak
here's the sql output: http://pastebin.ca/925002
23:13 prairiedogg
python noob alert
23:13 pjcrosier
easily done prairiedogg
23:13 prairiedogg
thanks very very much
23:14 prairiedogg
man, that alphabetized list looks good :)
23:17 neokeats
Freak: it seems it doesn't add constraint
23:17 imgrey
evening #django
23:17 mattmcc
Freak: I suspect you're creating conflicting requirements by mixing OneToOne with other relationship types which require a PK.
23:18 elsigh
please jesus, has anyone on here done i18n with django?
23:18 Freak
hm
23:18 Freak
neokeats: what constraint?
23:18 imgrey
I'm going to implement torrent tracker on django. probably someone encountered something ready for use ?
23:18 mattmcc
Freak: I would suggest, until qs-rf drops, using a unique FK instead.
23:18 imgrey
except 'torrentbarf'
23:18 pjcrosier
imgrey, check out geektorrents.com i think
23:19 mattmcc
imgrey: It seems likely that all the necessary python exists already.
23:19 imgrey
pjcrosier, there's no code
23:19 mattmcc
Given that the reference implementation for BT is python.
23:19 pjcrosier
imgrey, maybe give a nudge to the author? ;D
Page 10 of 11   ← Previous  Next →(1,049 total)