M
M
mr_drinkens892018-05-29 20:22:38
Django
mr_drinkens89, 2018-05-29 20:22:38

Staged Django registration?

Hello.
How to implement a step-by-step user registration mechanism:
Example:
step 1: Name, mail (with checks)
step 2: Password (with check)
step 3: Team name
step 4: Finish. We save the results and make a redirect.
Save variables in the session at each stage and pull them out at the finish line? Or is there a more concise and simpler approach?
Thank you in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jock Tanner, 2018-05-30
@Tanner

All steps can be done by the same view, just render different content depending on the state of the data on the server:
1. !user.is_authenticated()
2. !user.has_usable_password()
3. Your check for the existence of the command
Though the other answerers do too they say: registration is too annoying, I'm afraid many users will not reach the end.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question