I have a view which is something like this
def post_details(request,id):
if request.method== POST:
form=SubmitForm(request.POST)
if form.is_valid():
Now one of the things the form is supposed to do is register a user automatically, and then send the details to another page. I have on click of submit button a javascript whcih essentially does do registering part. The code is given below. But after registering the user does not come back to the form, and complete rest of the job at hand, such as redirect also with data to another page. What should I do? It registers, and then stays on the page.
Jquery code is here in the pastebin
Thanks