How to make django-registration use my customized UserCreationForm and UserChangeForm?
问题 I am developing a website using Django 1.4 and django-registration I would like to allow users to create their user names using arbitrary Unicode characters. Currently, if someone tries to register using non-latin characters, he will see an error message. The code responsible for rejecting this kind of non-ASCII usernames is in UserCreationForm and UserChangeForm , see here: username = forms.RegexField( label=_("Username"), max_length=30, regex=r"^[\w.@+-]+$", help_text = _("Required. 30