Re: current recommendations for using email as username

2011-03-08 Thread william ratcliff
It is in the forms. On Tue, Mar 8, 2011 at 4:26 PM, Brian Craft wrote: > On Tue, Mar 8, 2011 at 12:53 PM, william ratcliff > wrote: > > If you look through the code in the django admin, then the limit is set > in > > the database schema. > > I've read elsewhere that it's also in all the auth for

Re: current recommendations for using email as username

2011-03-08 Thread Brian Craft
On Tue, Mar 8, 2011 at 12:53 PM, william ratcliff wrote: > If you look through the code in the django admin, then the limit is set in > the database schema. I've read elsewhere that it's also in all the auth form validations, so you have to subclass all of them. I haven't actually investigated th

Re: current recommendations for using email as username

2011-03-08 Thread william ratcliff
If you look through the code in the django admin, then the limit is set in the database schema. On Tue, Mar 8, 2011 at 3:05 PM, Andy wrote: > Is the 30 characters limit enforced by the database or by Django? > > If the limit is set by the database, would altering the DB schema > work? > > On Mar

Re: current recommendations for using email as username

2011-03-08 Thread Andy
Is the 30 characters limit enforced by the database or by Django? If the limit is set by the database, would altering the DB schema work? On Mar 4, 10:51 pm, Shawn Milochik wrote: > > Email addresses have been allowed since version 1.2 < > >http://docs.djangoproject.com/en/1.2/topics/auth/#api-r

Re: current recommendations for using email as username

2011-03-08 Thread Bill Freeman
We've even had problems (converting people's old site accounts) with non-email usernames exceeding 30 characters. On Sat, Mar 5, 2011 at 12:49 AM, creecode wrote: > It would be grand if the max_length was upped. > > On Mar 4, 7:51 pm, Shawn Milochik wrote: > >> > Email addresses have been allowe

Re: current recommendations for using email as username

2011-03-04 Thread creecode
It would be grand if the max_length was upped. On Mar 4, 7:51 pm, Shawn Milochik wrote: > > Email addresses have been allowed since version 1.2 < > >http://docs.djangoproject.com/en/1.2/topics/auth/#api-reference>. > > Have you found place in 1.2.x where an email address doesn't work? > > The pr

Re: current recommendations for using email as username

2011-03-04 Thread Shawn Milochik
> > Email addresses have been allowed since version 1.2 < > http://docs.djangoproject.com/en/1.2/topics/auth/#api-reference >. > Have you found place in 1.2.x where an email address doesn't work? > > Toodle-lo.. > creecode The problem here is that the username is still limited to

Re: current recommendations for using email as username

2011-03-04 Thread creecode
Hello Brian, On Mar 4, 1:29 pm, Brian Craft wrote: > I've found any number of threads on using email as username in django, > but none that are both current and conclusive. "Just do ", followed > by "But that breaks [the forms, the templates, the auth site, the > registration, the db schema]" etc

Re: current recommendations for using email as username

2011-03-04 Thread Brian Craft
On Fri, Mar 4, 2011 at 1:34 PM, Shawn Milochik wrote: > What's wrong with writing your own auth backend? It's two piddly functions: > > http://dpaste.com/hold/473373/ > I think this has already been answered, in the comments here: http://djangosnippets.org/snippets/74/ and in the "motivation" s

Re: current recommendations for using email as username

2011-03-04 Thread Shawn Milochik
What's wrong with writing your own auth backend? It's two piddly functions: http://dpaste.com/hold/473373/ Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe

current recommendations for using email as username

2011-03-04 Thread Brian Craft
I've found any number of threads on using email as username in django, but none that are both current and conclusive. "Just do ", followed by "But that breaks [the forms, the templates, the auth site, the registration, the db schema]" etc., where is something like "use email in the User username c