TypeError at /accounts/register/ register() got an unexpected keyword argument 'profile_callback'

Sabuj Pattanayek sabujp at gmail.com
Wed Nov 3 03:57:03 EST 2010


Hi,

>  http://ozlabs.org/~jk/tmp/python-django-registration_0.7-2_all.tar.gz

^ not sure how this was supposed to fit into the filesystem tree, but
reverting back to the django-registration I pulled when
django-registration was still using svn fixed the problem with the
registration page not showing up and now it also looks like
userprofiles are automatically being created. Now our install is using
the most recent git code of patchwork and django 1.2, but older
django-registration until the original error mentioned in
stackoverflow is fixed.


>> NameError at /patch/313/mbox/
>> global name 'HeaderParser' is not defined
>
> Which version of python are you using? Could you try the following (in a

These aren't available with python 2.4.3 (comes with RHEL5/CENTOS5) so
it blows up on all the imports below. It is available with python 2.5,
but then we;d have to get mod_python to use another python installed
elsewhere.

> python shell), and let me know what output (in particular, whether there are
> ImportErrors reported) you get?:
>
>    from email.mime.nonmultipart import MIMENonMultipart
>    from email.encoders import encode_7or8bit
>    from email.parser import HeaderParser
>    import email.utils


> Every User should have a corresponding UserProfile - the original registration
> error is causing this problem.

Well, not sure which registration problem you're referring to.
Originally the registration page showed up, created a user in the user
table, but didn't create the userprofile. Again, I don't know whether
it was your code, or the new django 1.2 code, but the userprofiles are
now being created (stil using the old svn django-registration).

Thanks,
Sabuj


More information about the Patchwork mailing list