every one ,, I am using
django-registration-redux (1.4)
for my django registration(django 1.8),,however ,,when never I registered th
The get_success_url method does not take request as an argument. Remove it.
class MyRegistrationView(RegistrationView):
def get_success_url(self, user):
# the named URL that we want to redirect to after # successful registration
return ('home')
In this case, since you always redirect to the home view, you could set success_url instead:
class MyRegistrationView(RegistrationView):
success_url = 'home'