Disabling email-style usernames in Django 1.2 with django-registration

Posted by shacker on Stack Overflow See other posts from Stack Overflow or by shacker
Published on 2010-06-02T21:10:52Z Indexed on 2010/06/02 21:14 UTC
Read the original article Hit count: 390

Filed under:
|
|

Django 1.2 allows usernames to take the form of an email address.

Changed in Django 1.2: Usernames may now contain @, +, . and - characters

I know that's a much-requested feature, but what if you don't want the new behavior? It makes for messy usernames in profile URLs and seems to break django-registration (if a user registers an account with an email-style username, the link in the django-registration activation email returns 404).

Does anyone have a recipe for restoring the old behavior and disabling email-style usernames?

© Stack Overflow or respective owner

Related posts about django

Related posts about registration