Doesn't work with django-registration 0.8

Issue #4 new
created an issue

{{{ Exception Type: TypeError at /accounts/register/ Exception Value: register() takes at least 2 arguments (2 given) }}}

This error is being caused by the fact that django-registration 0.8 requires a backend to be explicitly passed to the views.

The following url should fix this:



from registration.views import register from email_usernames.forms import EmailRegistrationForm

urlpatterns = patterns('', url(r'^accounts/register/$', register, { 'form_class': EmailRegistrationForm, 'backend': 'registration.backends.default.DefaultBackend' }, name='registration_register'), ) }}}

Comments (1)

  1. Log in to comment