Re: QuerySet.exists() - Possible bug?

2010-02-09 Thread Jerome Leclanche
Django version 1.2 alpha 1 SVN-12267 I'm not using select_related at all anywhere at the moment, I just started database optimization. David's server is just a wrapper django-toolbar-like and doesn't perform anything smart on the sql or the like. I haven't yet tested on a vanilla setup, but I

Re: QuerySet.exists() - Possible bug?

2010-02-09 Thread Russell Keith-Magee
On Wed, Feb 10, 2010 at 3:11 PM, Jerome Leclanche wrote: > Hi list > > Using David Cramer's really nice replacement devserver > (http://github.com/dcramer/django-devserver), I noticed a bunch of > huge queries in some table generation code. Example: > http://dpaste.com/156907/

QuerySet.exists() - Possible bug?

2010-02-09 Thread Jerome Leclanche
Hi list Using David Cramer's really nice replacement devserver (http://github.com/dcramer/django-devserver), I noticed a bunch of huge queries in some table generation code. Example: http://dpaste.com/156907/ This is from one of my smallest tables, bigger ones with 120+ish rows can take multiple

Re: #12801 : Allow empty non-nullable ForeignKey fields until save()

2010-02-09 Thread hcarvalhoalves
Maybe I can help Luc? I had similar questions once, because I started learning Django while deploying with a legacy database. On 8 fev, 20:31, Luc Saffre wrote: > You cannot ask user code to not even look at invalid data. I'm > not allergic to exceptions, but raising an

Re: What The Enterprise wants from Django

2010-02-09 Thread stuff4ash
On 21 Jan., 17:45, Andy McKay wrote: > On 2010-01-21, at 9:15 AM, chris.moff...@gmail.com wrote: > > > I agree that managing settings gets to be a bit difficult in many > > environments - even non Fortune 1000 environments. Its also an issue for us that write and use

Re: Is any thing for python like .jar files for java.

2010-02-09 Thread Alex Gaynor
On Tue, Feb 9, 2010 at 3:05 PM, chiranjeevi muttoju wrote: > Hi all, > Is there any concept in python like .jar files in java. If anybody of you > know please reply me. > > -- > Thanks and regards, > chiranjeevi.muttoju > > -- > You received this message because you are

Is any thing for python like .jar files for java.

2010-02-09 Thread chiranjeevi muttoju
Hi all, Is there any concept in python like .jar files in java. If anybody of you know please reply me. -- Thanks and regards, chiranjeevi.muttoju -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: contrib.Auth

2010-02-09 Thread Vitaly Babiy
Vitaly Babiy On Tue, Feb 9, 2010 at 3:16 AM, James Bennett wrote: > On Tue, Feb 9, 2010 at 2:09 AM, Harro wrote: > > - Make email unique and username non-required on the model. That would > > make implementing something that authenticated by email a

Re: #12801 : Allow empty non-nullable ForeignKey fields until save()

2010-02-09 Thread Karen Tracey
On Tue, Feb 9, 2010 at 3:02 AM, Luc Saffre wrote: > "Closed" as "Invalid", as I understand it, means that this ticket is not > worth to get more consideration and that further comments are not welcome. > > "Open" with a triage stage of "Someday/Maybe" would help people who >

Re: #12804 - decorating admin views marked as invalid

2010-02-09 Thread Russell Keith-Magee
On Tue, Feb 9, 2010 at 10:51 PM, Luke Plant wrote: > On Tuesday 09 February 2010 02:40:03 Russell Keith-Magee wrote: > >> >> What do people think? >> > >> > Ugh. Assuming no one can come up with a brilliant fix so that the >> > auto_adapt stuff can work when combined with

Re: #12804 - decorating admin views marked as invalid

2010-02-09 Thread Luke Plant
On Tuesday 09 February 2010 02:40:03 Russell Keith-Magee wrote: > >> What do people think? > > > > Ugh. Assuming no one can come up with a brilliant fix so that the > > auto_adapt stuff can work when combined with arbitrary other > > decorators (I can't), I favor switching to a system that

Re: contrib.Auth

2010-02-09 Thread James Bennett
On Tue, Feb 9, 2010 at 2:09 AM, Harro wrote: > - Make email unique and username non-required on the model. That would > make implementing something that authenticated by email a lot > easier :) 1. It's *extremely* unlikely that changes will be considered which require every

Re: contrib.Auth

2010-02-09 Thread andybak
I recently tried to use the recommended approach for custom user profiles: http://docs.djangoproject.com/en/dev/topics/auth/#auth-profiles and all the brick walls I hit were admin related. Whether these are better fixed in contrib.auth or contrib.admin is hard to say: 1. I can show profile

Re: contrib.Auth

2010-02-09 Thread Dougal Matthews
On 9 February 2010 08:09, Harro wrote: > - Make email unique and username non-required on the model. That would > make implementing something that authenticated by email a lot > easier :) > For reference there are some good points here[1] on this topic started by Hanne Moa.

Re: #12804 - decorating admin views marked as invalid

2010-02-09 Thread Florian Apolloner
On Feb 8, 2:44 pm, Luke Plant wrote: > What do people think? +1 for everything which removes the magic from auto_adapt_to_methods. Can't say much about the backwards incompatiblity issue, cause I don't care ;) Of course it would be nice, but given the options I would just

Re: contrib.Auth

2010-02-09 Thread Hanne Moa
On 9 February 2010 09:09, Harro wrote: > - Make email unique and username non-required on the model. That would > make implementing something that authenticated by email a lot > easier :) Pff, move emails out entirely. Email-addresses may change. Usernames shouldn't change.

Re: contrib.Auth

2010-02-09 Thread Harro
- Make email unique and username non-required on the model. That would make implementing something that authenticated by email a lot easier :) On Feb 9, 1:34 am, Russell Keith-Magee wrote: > On Tue, Feb 9, 2010 at 8:15 AM, Justin Lilly wrote: > >

Re: #12801 : Allow empty non-nullable ForeignKey fields until save()

2010-02-09 Thread Luc Saffre
On 9.02.2010 1:09, Karen Tracey wrote: > On Mon, Feb 8, 2010 at 5:31 PM, Luc Saffre > I personally won't insist > further, especially since Luke knows Django better than me. May I > suggest again to mark this ticket to something different than "duplicate > of