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
Reason for not allowing spaces in usernames?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Wiiboy  
View profile  
 More options Jun 11 2009, 11:26 pm
From: Wiiboy <jordon...@gmail.com>
Date: Thu, 11 Jun 2009 20:26:23 -0700 (PDT)
Local: Thurs, Jun 11 2009 11:26 pm
Subject: Reason for not allowing spaces in usernames?
Why does Django not allow spaces in user's usernames?  On my site, a
user's username is the first and last name combined (the equivalent of
user.get_full_name()).

 
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.
Joshua Partogi  
View profile  
 More options Jun 12 2009, 2:40 am
From: Joshua Partogi <joshua.j...@gmail.com>
Date: Fri, 12 Jun 2009 16:40:51 +1000
Local: Fri, Jun 12 2009 2:40 am
Subject: Re: Reason for not allowing spaces in usernames?

On Jun 12, 1:26 pm, Wiiboy <jordon...@gmail.com> wrote:

> Why does Django not allow spaces in user's usernames?  On my site, a
> user's username is the first and last name combined (the equivalent of
> user.get_full_name()).

I guess it's just for simplicity and validation purposes. It would be really
difficult to detect users with whitespaces I guess.

--
Join Scrum8.com.

http://scrum8.com/member/jpartogi/
http://scrum8.com/blog/jpartogi/
http://twitter.com/scrum8


 
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.
Kenneth Gonsalves  
View profile  
 More options Jun 12 2009, 2:49 am
From: Kenneth Gonsalves <law...@thenilgiris.com>
Date: Fri, 12 Jun 2009 12:19:33 +0530
Local: Fri, Jun 12 2009 2:49 am
Subject: Re: Reason for not allowing spaces in usernames?
On Friday 12 June 2009 12:10:51 Joshua Partogi wrote:

> On Jun 12, 1:26 pm, Wiiboy <jordon...@gmail.com> wrote:
> > Why does Django not allow spaces in user's usernames?  On my site, a
> > user's username is the first and last name combined (the equivalent of
> > user.get_full_name()).

> I guess it's just for simplicity and validation purposes. It would be
> really difficult to detect users with whitespaces I guess.

or a unix legacy - generally unix usernames do not allow spaces.
--
regards
kg
http://lawgon.livejournal.com

 
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.
Wiiboy  
View profile  
 More options Jun 12 2009, 9:42 am
From: Wiiboy <jordon...@gmail.com>
Date: Fri, 12 Jun 2009 06:42:06 -0700 (PDT)
Local: Fri, Jun 12 2009 9:42 am
Subject: Re: Reason for not allowing spaces in usernames?
Do you think I would have problems if I disabled the checking for
spaces?

When I register users, I have it done automatically (user fills out a
form), and Django doesn't have a problem with a space there.  It's
just in the Admin interface.


 
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.
Marco Louro  
View profile  
 More options Jun 12 2009, 9:55 am
From: Marco Louro <mlo...@gmail.com>
Date: Fri, 12 Jun 2009 06:55:47 -0700 (PDT)
Local: Fri, Jun 12 2009 9:55 am
Subject: Re: Reason for not allowing spaces in usernames?
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.

On Jun 12, 2:42 pm, Wiiboy <jordon...@gmail.com> wrote:


 
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.
Wiiboy  
View profile  
 More options Jun 12 2009, 10:08 am
From: Wiiboy <jordon...@gmail.com>
Date: Fri, 12 Jun 2009 07:08:12 -0700 (PDT)
Local: Fri, Jun 12 2009 10:08 am
Subject: Re: Reason for not allowing spaces in usernames?

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 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.
Paul von Hoesslin  
View profile  
 More options Nov 17 2012, 3:14 am
From: Paul von Hoesslin <paulvonhoess...@gmail.com>
Date: Sat, 17 Nov 2012 00:14:37 -0800 (PST)
Local: Sat, Nov 17 2012 3:14 am
Subject: Re: Reason for not allowing spaces in usernames?

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.


 
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.
Tomas Neme  
View profile  
 More options Nov 17 2012, 1:20 pm
From: Tomas Neme <lacrymol...@gmail.com>
Date: Sat, 17 Nov 2012 15:18:59 -0300
Local: Sat, Nov 17 2012 1:18 pm
Subject: Re: Reason for not allowing spaces in usernames?

> 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

Well, I can't really agree, but whatever, it shouldn't be hard to do..
just override the forms... at the worse of cases, the User model...

--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.


 
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.
Cal Leeming [Simplicity Media Ltd]  
View profile  
 More options Nov 19 2012, 12:06 am
From: "Cal Leeming [Simplicity Media Ltd]" <cal.leem...@simplicitymedialtd.co.uk>
Date: Mon, 19 Nov 2012 05:05:46 +0000
Local: Mon, Nov 19 2012 12:05 am
Subject: Re: Reason for not allowing spaces in usernames?

(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 <


 
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.
Elena Williams  
View profile  
 More options Nov 19 2012, 12:13 am
From: Elena Williams <ele....@gmail.com>
Date: Mon, 19 Nov 2012 16:12:47 +1100
Local: Mon, Nov 19 2012 12:12 am
Subject: Re: Reason for not allowing spaces in usernames?

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] <


 
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.
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:32:31 +0800
Local: Mon, Nov 19 2012 12:32 am
Subject: Re: Reason for not allowing spaces in usernames?

If you need to do login via email address, it is possible right now -- it's
just a little convoluted. You need to play around with custom
authentication backends, and rewrite a bunch of forms.

In Django 1.5, we're addressing this by making the User model customisable.
That means you can specify that the "username" is an EmailField, of
whatever length you like, or you can specify the username is an "alias",
which allows spaces -- whatever your use case requires.

For more details, see the docs for the new feature [1]; 1.5 final should be
released towards the end of this year.

[1]
https://docs.djangoproject.com/en/dev/topics/auth/#customizing-the-us...

Yours
Russ Magee %-)

On Sat, Nov 17, 2012 at 4:14 PM, Paul von Hoesslin <


 
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.
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 %-)


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »