[Answer]-Unable to extend a simple form with django-registration (NotImplementedError at /accounts/register/)

1๐Ÿ‘

โœ…

When I fill up the form and try to send it I get NotImplementedError at /accounts/register/

Your urls.py makes it look like you are using a custom registration backend (user_profile.backends.RegistrationBackend). You need to add custom logic for user registration (as the docstring on the register method suggests) to its RegistrationView.

Depending on how your application works, it might make more sense to have your backend inherit from one of the two included registration backends.

my app never stops at the breakpoint

A print statement is not the same as a breakpoint: if the statement had executed, it would have printed โ€œokโ€ to the console or log, but the application would not have stopped or paused.

I have tried to search for solution (especially this, this and this) but most of them are using django-registration 0.8 and Iโ€™m using v1.0 which is completely rewritten and some things are not working as they used to.

It might make more sense for you to migrate away from django-registration. Its maintainer has posted a long essay explaining that django-registration 1.0 has issues, but that he no longer uses it and is not maintaining it.

๐Ÿ‘คMartey

Leave a comment