[Answer]-Django django-custom-user and registration becomes no-op

1👍

Well the problem you face is that django-registration expects a username as well as a password and an email address. As you can see in the source code of django-registration

https://bitbucket.org/ubernostrum/django-registration/src/8f242e35ef7c004e035e54b4bb093c32bf77c29f/registration/backends/default/views.py?at=default#cl-74

If I were you I would simply create a simple form and use a FormView from django. After, in order to match django-registration you could do more research and try to fit django-registration with django-custom-user.

It could be that you create a class that inherits django-custom-user, or that you change the form or anything like that. Otherwise you could even fork django-registration and update it according to django-custom-user and then use it for your project and make it available on github as django-registration-custom-user

0👍

Have you tried python manage.py makemigrations and python manage.py migrate?

Also try displaying the form as form.as_p in order to get all fields and all errors displayed automatically. Forget about CSS for now.

Also what package is registration.backends.default.urls ?
Because it is not django-custom-user

I hope this helps

Leave a comment