Simple session based form wizard for django applications.
Project description
django-simple-formwizard
django-simple-formwizard is a simple session based form wizard for django applications.
Quickstart:
Install package:
$ pip install django-simple-formwizard
In views:
Define steps configuration:
MY_WIZARD_STEPS = [
{'name': 'Step Mane',
'url_name': 'url-to-step',
'url_params': [list of url params],
'anonymous_required': False},
...
]
Create wizard object
wizard = Wizard(request, MY_WIZARD_STEPS)
Forms initial data:
my_form = MyForm(initial=wizard.data.get('my_data', {}))
Setting data:
wizard.set_data({'my_data': my_form})
Example:
my_form = MyForm(initial=wizard.data.get('my_data', {}))
if request.method == 'POST':
my_form = MyForm(request.POST)
if my_form.is_valid():
wizard.set_data({'my_data': my_form})
return redirect_to_next_step
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-simple-formwizard-0.1.tar.gz.
File metadata
- Download URL: django-simple-formwizard-0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98322d0afe38846154b1c678c4f2ffe170b65fa610b57ee8449f9506d576934e
|
|
| MD5 |
e784fbbd00249fa2e9ce4e6785199faa
|
|
| BLAKE2b-256 |
4bd1f5c718416f4d9ad8b17505f920ee16277f594e4746fbda713d1f18e594d0
|