How do I use emails instead of username for authentication using django-registration.
Further how do I enforce this change once I have already installed the registration module.
Do I edit the solution here Anyone knows a good hack to make django-registration use emails as usernames? in the lib folder?
Dear fellow Django Coder,
I think this is the best way to do it. Good luck!
First step, is to create the form you’d like to use.
project/accounts/forms.py
Here you are creating a file to override the register() function in django-registration.
project/accounts/regbackend.py
Direct your urls to paths you want to use.
project/urls.py
Tell your urls to use the custom backend for the registration view. Also, import the form you created and add it to the url to be processed by the view.
project/accounts/urls.py
Hope that works!
-Matt