Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Reason for not allowing spaces in usernames?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Russell Keith-Magee  
View profile  
 More options Nov 19 2012, 12:33 am
From: Russell Keith-Magee <russ...@keith-magee.com>
Date: Mon, 19 Nov 2012 13:33:23 +0800
Local: Mon, Nov 19 2012 12:33 am
Subject: Re: Reason for not allowing spaces in usernames?

One obvious problem case -- email addresses longer than 30 characters. The
current username field has a 30 character max, which is easy to exceed if
you try and put email addresses into the username field.

Django 1.5 addresses this by allowing your user model to be customisable,
so you can make the username constraints whatever you want.

Yours,
Russ Magee %-)

On Mon, Nov 19, 2012 at 1:12 PM, Elena Williams <ele....@gmail.com> wrote:
> Apparently some weirdness can be caused by having email addresses as
> usernames in django, though I'm not sure specifically what this is.

> Does anyone know these cases?

> ---
> Elena :)
> @elequ

> On Mon, Nov 19, 2012 at 4:05 PM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:

>> (imo) Allowing spaces in username just isn't a very sane approach.

>> Rather than telling the user to choose a username, why not make them
>> login with their email address instead? Users are less likely to forget
>> their email address, and if anything, it would be less error prone than a
>> username would, especially one with spaces.

>> By all means, you can allow users to have spaces in their alias /
>> nickname field, but allowing them to login with it might not be the best
>> approach.

>> Hope this helps!

>> Cal

>> On Sat, Nov 17, 2012 at 8:14 AM, Paul von Hoesslin <
>> paulvonhoess...@gmail.com> wrote:

>>> I'm puzzled with this too. Did anyone manage to find a solution to
>>> resolving spaces in usernames.

>>> Generally a user, these days logs in with their email - that's
>>> predominately how I've setup all my django projects. People don't remember
>>> usernames. It is legacy, facebook connects with emails, so does gmail and
>>> the rest of the world. Username really has fallen back to a NickName /
>>> Alternative / Alias kind of field. You'd use it if you knew that in your
>>> application people wouldn't want their real, full names to be displayed.

>>> On Friday, June 12, 2009 4:08:12 PM UTC+2, Wiiboy wrote:

>>>> On Jun 12, 6:55 am, Marco Louro <mlo...@gmail.com> wrote:
>>>> > As long as you trim start and trailing spaces, there shouldn't be any
>>>> > problem, but personally I wouldn't use spaces in usernames at all.

>>>>  Why not?

>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/django-users/-/UGdOmEepavIJ.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.

>>  --
>> 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 from this group, send email to
>> django-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.

>  --
> 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 from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.