Trapping insertion/deletion in ManyRelatedManager

2007-09-10 Thread ludo
the ManyRelatedManager class as it's dynamically generated inside a method called from (Related)ManyRelatedObjectsDescriptor. It seems like a pretty simple use case, but I can't figure a way to do it, other than writing a full set of custom field/descriptor/manager which seems pretty overkill. Ludo

Re: WordPress to Django Migration App

2007-08-31 Thread ludo
ements a working, user-friendly admin console on top of that. People could then swap WP with the new app while maintaining their data, and having the option of going back to WP. Or even use WP for presentation and the new app for managing their blog, or vice-versa. Ludo --~--~-~--~~--

Re: IntegrityError, MySQL, unicode strings equality (accents and umlauts)

2007-08-22 Thread ludo
sec) mysql> insert into test values (' ', 'e'); Query OK, 1 row affected (0.00 sec) mysql> select * from test where a=b; Empty set (0.00 sec) You can find the manual pages for MySQL collations and related issues here http://dev.mysql.com/doc/refman/4.1/en/charset-collations.html Ludo

Re: MySQL and InnoDB

2007-08-07 Thread ludo
to do, and you get more control on ON CASCADE / ON DELETE statements. Ludo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups

Re: full-text indexing

2007-08-06 Thread ludo
DjangoSnippets [2], and I have a slimmer version that additionally uses Sphinx's abstract engine to generate contextual excerpts for results. Sphinx is pretty easy to set up, and *very* fast. It integrates nicely with MySQL and PostgreSQL, or with a bit of fiddling with anything that can be exported

Re: What IDE do you use? (semi-OT)

2006-10-10 Thread ludo
I've been using J [1] for a while, it's a lean, fast Java-based editor with good syntax highlighting support and a class browser. It also has its own LISP interpreter and email client, but I never use those. :) [1] http://armedbear.org/ --~--~-~--~~~---~--~~ You

Where do I trap an IntegrityError exception in the console?

2005-10-06 Thread ludo
is a copy of the traceback Traceback (most recent call last): File "/home/ludo/fashionstreets/django/core/handlers/base.py", line 64, in get_response response = callback(request, **param_dict) File "/home/ludo/fashionstreets/django/views/admin/main.py", line 78

One file per class in models?

2005-08-11 Thread ludo
Is there a standard way to have multiple files (eg one per class) inside an app's model/ folder? I seem to end up with a different app prefix for each file no matter what I try, eg mysite/apps/myapp/boxes.py looks for a boxes_boxes table instead of myapp_boxes.