Skip to main content

django-simple-formwizard

Number of PyPI downloads

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-simple-formwizard-0.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file django-simple-formwizard-0.1.tar.gz.

File metadata

File hashes

Hashes for django-simple-formwizard-0.1.tar.gz
Algorithm Hash digest
SHA256 98322d0afe38846154b1c678c4f2ffe170b65fa610b57ee8449f9506d576934e
MD5 e784fbbd00249fa2e9ce4e6785199faa
BLAKE2b-256 4bd1f5c718416f4d9ad8b17505f920ee16277f594e4746fbda713d1f18e594d0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page