1

well ive been searching for the past 3 hours and I cant seem to find a good tutorial on this ... i`m looking for a tutorial on how to make a form "wizard" with jquery and django (I dont know javascript only basics) I need a 3 step wizard ...

first step 2 inputs

  • user
  • password

if user and password are in db then show 2nd step

2nd step 2 input

  • email
  • address (home address)

send a token to his email ...

3rd step 3 input and finish button

  • new password
  • retype password
  • token

check if the token is valid if it is submit ...

Can you guys point me to the right direction ?

Thx a lot.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
void
  • 269
  • 2
  • 5
  • 12
  • 1
    Without using javascript, there is the inbuilt Django Form Wizard: http://docs.djangoproject.com/en/1.2/ref/contrib/formtools/form-wizard/ – gak Aug 25 '10 at 22:37

1 Answers1

1

If you're using Javascript then the "step" process will be faked, basically hiding/showing/validating fields when a user clicks a button, but it will all be in one view. Take a look at the answers to this question for help on building that. This looks like a pretty good tutorial on the topic as well. You won't be changing anything on the backend, and you can use a single Django form to display all the inputs individually. Check the Django docs on using forms in templates for more information on that.

If you want a "step" process using Django without using Javascript, you can use the Django form wizard.

Community
  • 1
  • 1
Liam
  • 2,017
  • 3
  • 22
  • 19