Username Error Using Custom Authentication In Django
I'm trying to create custom authentication in Django where the identifier is an email, there is a required field called name and a password field. The login view works fine, but I
Solution 1:
You'll need to create your own form instead of using django's own UserCreationForm
. Django's form requires you to have a username.
You don't have a username, so Django's form will not work for you. So... create your own. See also Django 1.5: UserCreationForm & Custom Auth Model, and especially the answer https://stackoverflow.com/a/16570743/27401 .
Post a Comment for "Username Error Using Custom Authentication In Django"