Monday, September 29, 2014

Django Registration

Hello folks

I got this error Django Registration 'str' object is not callable

INSTALLED_APPS = (
     ......
    'registration',
)

REGISTRATION_EMAIL_REGISTER_SUCCESS_URL = '/accounts/register/complete/'

in urls.py

get_success_url=getattr(
                settings, 'REGISTRATION_EMAIL_REGISTER_SUCCESS_URL',
                lambda request, user: '/'
            ),

Please help what happend to me i dont understand.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPs6WScaQqikbxyNALZ5c4%3D-dYN_s%2Bpt6Y-kD9UBhzJgVgA97w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment