django-wizardA wizard that helps to control page flow | |
Download |
django-wizard Ranking & Summary
Advertisement
- License:
- BSD License
- Publisher Name:
- Matthew J. Morrison
- Publisher web site:
- https://github.com/imtapps/
django-wizard Tags
django-wizard Description
A wizard that helps to control page flow django-wizard uses Step classes to control page flow.To create a wizard, you need a url route defined that is going to point to aview and take a step parameter, like this:url(r'^(?P< step >+)?$', views.NewWizard.as_view(), name='new_wizard'),That view then must instantiate the wizard passing it the url name, and a list of steps.Then the wizard's handle_request method should be called and returned with the request and the current step name (From the url)IE:def my_view(request, step): Wizard('new_wizard', ) return wizard.handle_request(request, step)The wizard also has a defaulted navigation_opts argument that can be passed in the __init__ navigation options are a dictionary with a key of a string that will map to a field in the Request, and the value is an int. These tell the wizard what direction to go and how far in which scenarios.The defaults are:wizard_save: 0wizard_continue: 1wizard_previous: -1wizard_next: 1 Requirements: · Python · Django
django-wizard Related Software