This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-simple-formwizard-0.1.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Nov 4, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting