Re: auth.User refactor: reboot

2012-03-17 Thread Aymeric Augustin
Hello, I wanted to support the idea of the pluggable User model, but Russell just sent an excellent argumentation, saving me the effort :) I agree very much with his proposal. Subclassing, or writing an API-compatible class (duck typing) is the canonical way to alter a built-in behavior in Pyt

Re: auth.User refactor: reboot

2012-03-17 Thread Danny Adair
On Sat, Mar 17, 2012 at 20:38, Aymeric Augustin wrote: >[...] > Besides, I find project-wide "user profiles" impractical for most purposes. I > prefer subclassing auth.User even if I just need a few extra fields, and add > enough glue (middleware, auth backend, login and logout views) to hold th

Re: auth.User refactor: reboot

2012-03-17 Thread Ian Lewis
Hi, Eric Florenzano and I actually had a discussion about this at PyCon. My company does Django development and simply doesn't use the Django auth app because it tries to do authentication and authorization in one app and the User models are just to inflexible. Many projects didn't need or want us

Tips required to run django tests configurazion for all databases

2012-03-17 Thread Simone Federici
Hi, when I run the total django suite for all database there are times totally different, obvious sqllite is not possible compare with the others, oracle and postgresql have the similar performance during the tests, but mysql... there is some tricks to go faster the mysql suite test case? -- Y

Re: auth.User refactor: reboot

2012-03-17 Thread Mikhail Korobov
суббота, 17 марта 2012 г. 0:15:39 UTC+6 пользователь dstufft написал: > > On Friday, March 16, 2012 at 2:08 PM, Luke Sneeringer wrote: > > Here's my hit list of perceived benefits: > 1. It regains the efficiency of a single table (which is minor, to be > sure, but since Jacob already brought it up

list of function to django view

2012-03-17 Thread HaiZone
i learn django now, how i can To find a site or list with a function to django something like php.net to php or that: https://docs.djangoproject.com/en/dev/topics/http/shortcuts in that link have a function but i need more to do something i want https://docs.djangoproject.com/en/dev/topics/ht

Re: list of function to django view

2012-03-17 Thread Karen Tracey
Please ask questions about using Django on the django-users mailing list. The topic for this list is the development of Django itself. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develo

GSOC 2012

2012-03-17 Thread Andrew Godwin
Hello everyone, As some of you have already noticed, we've been accepted into GSOC 2012 and we're now starting to discuss ideas with students. The actual application period doesn't open until the 26th March, but we'd encourage you to start discussing applications on this mailing list before th

Re: Tips required to run django tests configurazion for all databases

2012-03-17 Thread Nate Bragg
On Sat, Mar 17, 2012 at 5:33 AM, Simone Federici wrote: > oracle and postgresql have the similar performance during the tests, > > but mysql... there is some tricks to go faster the mysql suite test case? > I recently encountered this as well; for me, it was because I was using MyISAM as the bac

Re: auth.User refactor: reboot

2012-03-17 Thread Donald Stufft
On Saturday, March 17, 2012 at 1:59 AM, Russell Keith-Magee wrote: > > On 17/03/2012, at 12:53 AM, Jacob Kaplan-Moss wrote: > > > Hi folks -- > > > > This discussion of user authentication by email is getting pretty nasty; > > can we start over? I know there's a lot of quite legitimate frustrat

Re: Tips required to run django tests configurazion for all databases

2012-03-17 Thread Simone Federici
On Sat, Mar 17, 2012 at 15:03, Nate Bragg wrote: > I recently encountered this as well; for me, it was because I was using > MyISAM as the backend - switching to InnoDB saw about an 8x speedup, to > become comparable to postgres (it took over four hours to run under MyISAM, > for reference). Whic

Re: Ticket 16317 https://code.djangoproject.com/ticket/16317

2012-03-17 Thread Simone Federici
On Fri, Mar 16, 2012 at 15:00, Marcob wrote: > The ticket 16317 has a very nice 4 months old patch (it's has a two > lines fix, remainder are just test fixes). > It was marked for 1.3 version but now it's better to change it to 1.4 > version. > As I really hate to patch django I think my only sol

GSoc Improved Error Reporting Project

2012-03-17 Thread melanie.s....@googlemail.com
Hi, My name is Melanie Rao, I am a student at the University of Edinburgh. In the final year of my Bachelors in Artificial Intelligence and Software Engineering, I was hoping to work on an open source project this summer, and would be very keep to join Django through the Google Summer of Code sche

Re: auth.User refactor: reboot

2012-03-17 Thread Russell Keith-Magee
On 17/03/2012, at 4:16 PM, Ian Lewis wrote: > Hi, > > Eric Florenzano and I actually had a discussion about this at PyCon. > My company does Django development and simply doesn't use the Django > auth app because it tries to do authentication and authorization in > one app and the User models ar

Re: auth.User refactor: reboot

2012-03-17 Thread Russell Keith-Magee
On 17/03/2012, at 10:46 PM, Donald Stufft wrote: > On Saturday, March 17, 2012 at 1:59 AM, Russell Keith-Magee wrote: >> >> * It solves the immediate problem ... >> >> As I see it, the immediate problem is that developers want to be able to >> modify the base requirements of auth.User. There m

Re: auth.User refactor: reboot

2012-03-17 Thread Ian Lewis
Hi, On Sun, Mar 18, 2012 at 9:41 AM, Russell Keith-Magee wrote: >> 1. Django shouldn't decide what fields go on the user model. The app >> provides an abstract base class which developers subclass to add the >> appropriate fields they need. > > +1 THX >> 2. Django shouldn't decide the type of t