I have a django website with a registration page.
When the user hits the submit button (on /register), I want to validate in the same view (/register). When it does work, I want the user to be taken to another view, to accomplish their next task (/agree), if they have consents to give, or if not, to be taken to a success page telling them they have completed their sign-up.
i.e., their experience should be:
/register --- if consents needed ---> /agree ---> /success
|开发者_运维问答 ^
|--- no consent needed ---------------------------|
Is there a way to accomplish this? If not, what are good alternatives?
There exists a django core tool named "Form Wizard" which in fact is not very comfortable, but works fine.
精彩评论