"Adrian Holovaty" <[EMAIL PROTECTED]> writes: > On 2/9/07, David Abrahams <[EMAIL PROTECTED]> wrote: >> Entry.objects.filter( >> _.headline.startswith('What') & >> ~(_.pub_date>=datetime.now()) & >> _.pub_date>=datetime(2005, 1, 1)) > > David, > > Looks like you don't like Django's database API.
I like some of it, but, well, not the '__' part. But my likes aren't really the point here. > Sorry you don't like it, but we can't please everybody. At this > point, as other people have explained, we're open to making gradual > changes, but not fundamental changes like the one you're proposing. It's a pure extension, not a fundamental change... but, whatever. > I think you'd enjoy using Dejavu, a Python database library that uses > Python expressions to specify "WHERE" clauses. > > http://cheeseshop.python.org/pypi/Dejavu/1.5.0RC1 > > The nice thing about Django is that you can still use the framework > (with a couple of limitations) using another model layer, such as > Dejavu. Considering I can't even reach Dejavu's home page, I think I'd rather write my query layer myself. -- Dave Abrahams Boost Consulting www.boost-consulting.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---