[Answered ]-Custom registration redirect in django

2👍

Just do a redirect after you handle the POST request instead of rerendering the form:

from django.core.urlresolvers import reverse
....

if user_form.is_valid():
    ....
    return HttpResponseRedirect(reverse('companyaddreg'))
    #return render(request,'account/register_done.html',{'new_user':new_user})

Leave a comment