title: django-registration custom registration form (recaptcha field)
body: <p>I try to add a recaptcha field to my registration form and followed Marcos guide: </p>
  
  <p><a href="http://www.marcofucci.com/tumblelog/26/jul/2009/integrating-recaptcha-with-django/" rel="nofollow noreferrer">http://www.marcofucci.com/tumblelog/26/jul/2009/integrating-recaptcha-with-django/</a></p>
  
  <p>In my registration app, I have a file "forms.py" which looks like this:</p>
  
  <pre><code>from recaptcha import fields as captcha_field
  from registration.forms import RegistrationFormUniqueEmail
  
  class RecaptchaRegistrationForm(RegistrationFormUniqueEmail):
    recaptcha = captcha_field.ReCaptchaField()
  </code></pre>
  
  <p>and a urls.py which gets included under /accounts by my solution wide urls.py:</p>
  
  <pre><code>from django.conf.urls.defaults import *
  from registration.views import register
  from forms import RecaptchaRegistrationForm
  urlpatterns = patterns('users.views',
                         (r'^$', 'profile'),
                         url(r'^register/$', register, {'form_class': RecaptchaRegistrationForm}, name='registration_register'),
                        )
  </code></pre>
  
  <p>Now, when I go to /accounts/register/ I get this error message:</p>
  
  <blockquote>
    <p>Exception Value: register() takes at least 2 non-keyword arguments (1 given)</p>
  </blockquote>
  
  <p>I have no idea why.</p>