Re: Connecting to AS400

2008-09-12 Thread Brett H
Yes - the trick is with slow odbc interfaces is to differentiate between auto-increment/log style source tables and those which may update any record. Also try and pick your tables and fields to sync judiciously and work out your sync cycle based on how expensive in time it is to retrieve all the

Re: Connecting to AS400

2008-09-11 Thread Brett H
I've done this - not specifically with AS400 - but with a couple of obscure databases. Basically you need to work out ODBC part first. Get your basic connection working. Once that is done I recommend mx.ODBC as a good python interface that is the most robust I've found with commercial support if

Re: define "_default_manager" and the admin-interface

2008-09-02 Thread Brett H
As far as I can see in principle you would want to leave the live manager first as your default manager and then override it in your admin class as the exception - something like this: class EntryAdmin(admin.ModelAdmin): ... manager = Entry.objects But admin needs patching to make that

ANN: An unofficial companion to Practical Django Projects

2008-08-25 Thread Brett H
I'm really enjoying learning Django through Practical Django Projects (thanks James), but obviously with the newforms admin in 1.0 the examples needed a bit of re-working. After seeing a few people asking similar questions in this group I decided to just write it up for others who may have