Not redirected to registration_complete.html after registration


#1

After (successfully) registering an user, the browser redirects to the home page instead of redirecting to the registration complete page. I feeI like I missed something on the way, but I checked by code several times already. What could the problem be? I use Python 3.6 and django-registration-redux 2.6. Thanks in advance!


#2

Hi,

On page 65, it says to add the following to the bottom of the settings.py file after all the email settings:-

While we’re here, let’s tell Django what page we want to
redirect to after successful registration. Add after the code
block above:

LOGIN_REDIRECT_URL = "home"

So this line tells django to display the ‘home’ page after registration. Within reason, you should be able to put whatever page you like.


#3

I am having the very same issue. I don’t believe it is the LOGIN_REDIRECT_URL = “home” which is for after logging in and not for registration.

I’ve also run through the code several times. Anyone else have a guess?


#4

If you put your code on pastebin or github, I can try to figure it out! :)


#5

Thanks for responding! I did not end up being able to figure this one out but i eventually got to the chapter where we redirect the user to create their first list post registration and that worked, so i’m back on track.