django-registration Require a unique email address for registration
Everyone uses django-registration for... registration... however.. you may get this error:
TypeError at /accounts/register/ register() takes at least 2 non-keyword arguments (1 given)
Here's what your urls.py should look like for the /accounts/register/ url: urls.py
from django.conf.urls.defaults import *
from registration.forms import RegistrationFormUniqueEmail
urlpatterns = patterns('',
(r'^accounts/register/', 'registration.views.register', {'form_class':RegistrationFormUniqueEmail,'backend':'registration.backends.default.DefaultBackend' }),
)
0 Comments
Log in with Twitter, Google, Facebook, LinkedIn to leave a comment.