Re: basic question about concurrent access

2006-08-24 Thread Michael van der Westhuizen
Hi Steve, On 8/24/06, Steve M <[EMAIL PROTECTED]> wrote: > > I have a basic question about concurrency. > [snip] > > Now Alice and Bob each edit the email address in the text field, but > they set it to different values; Alice sets it to > '[EMAIL PROTECTED]' and Bob sets it to '[EMAIL PROTECTED]

Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Michael van der Westhuizen
Hi Jon, On 8/15/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: [snip] > I've just tried removing the regular expression - so the line looks like: > > (r'^/?(?P\w+)/$', > 'django.views.generic.list_detail.object_list', {'queryset': > Item.objects.filter(feed__feedtype__feedtype__iexact=feedtype).orde

Re: More complex QuerySets and generic views

2006-08-15 Thread Michael van der Westhuizen
Hi Jon, On 8/15/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm dabbling with generic views (thanks to wise advice from others on > this list), and I'm trying to convert one of my slightly more > complicated views to use a generic view. The vie itself is a simple > list, but my querys

Re: 'Pythonicity', pagination and readability.

2006-08-15 Thread Michael van der Westhuizen
Hi Jon, On 8/15/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > Hi, > > One of the things which I love about django is the lack of code I have > to write. I recently refactored some of my views from approximately 30 > lines of code down to just two, but I'm worried about the readablity > of my code

Re: How to log ALL queries

2006-08-11 Thread Michael van der Westhuizen
Hi, On 8/11/06, Corey Oordt <[EMAIL PROTECTED]> wrote: > > David, > > > Not sure if this helps, but the only way I found (using postgresql) was to > turn on query logging in postgresql. Then you truly see everything that is > passed to the database. > > I'm not familiar with Oracle at all, but I'

Re: Using custom forms with generic views

2006-08-07 Thread Michael van der Westhuizen
On 8/7/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sat, 2006-08-05 at 08:36 -0700, jeffmikels wrote: > > I'm trying to create a site that has entries of different types and > > tags that can link to any type of entry. > > > > In my models, I have a > > > > tags = models.ManyToManyFiel

Re: Invalid character error using Oracle backed

2006-08-05 Thread Michael van der Westhuizen
Hi, On 8/6/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sat, 2006-08-05 at 08:15 -0700, David wrote: [snip] > > File "django/db/backends/oracle/base.py", line 70, in execute > > return Database.Cursor.execute(self, query, params) > > cx_Oracle.DatabaseError: ORA-00911: invalid c

Re: Rev 3507 breaks admin site

2006-08-01 Thread Michael van der Westhuizen
On 8/1/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > On 8/1/06, Neboj¹a Ðorðeviæ <[EMAIL PROTECTED]> wrote: > > I submitted quick fix to http://code.djangoproject.com/ticket/2463 > > which keeps 3507 changes. > > Fixed in [3508] -- thanks for pointing this out! Confirmed as fixed. --~--~-

Rev 3507 breaks admin site

2006-08-01 Thread Michael van der Westhuizen
Hi All, After updating SVN this morning I get the error below. Reverting to revision 3506 resolves the problem. The error occurs with the default site (no apps installed) - just start a project, enable admin, syncdb, runserver, log in to admin, go to users and click on a user to view the details