On Jan 14, 2010, at 2:44 AM, nameless wrote:
> I want to use "id" as identifier for each user. So every user will
> have an url like this:
>
> http://www.example.com/827362
>
> I don't want username for my project.
> So, if I can't delete it, I think to insert email in username field
> and I don't want another identifier in username field as random
> strings :P
> In this case I don't have to create a custom backend.
> Is a good idea in your opinion ?
>
It's not a good idea, unless you want to do a lot of customization.
Username is unique, 30 characters, and only allows A-Za-z0-9_, no @ or -.
You are better off generating a random unique value for username and
authenticating on email address.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.