示例#1
0
文件: urls.py 项目: lemuelf/django-1
from django.conf.urls.defaults import *
from django.contrib.formtools.wizard.tests.wizardtests.forms import (
    SessionContactWizard, CookieContactWizard, Page1, Page2, Page3, Page4)

urlpatterns = patterns(
    '',
    url(
        r'^wiz_session/$',
        SessionContactWizard.as_view([('form1', Page1), ('form2', Page2),
                                      ('form3', Page3), ('form4', Page4)])),
    url(
        r'^wiz_cookie/$',
        CookieContactWizard.as_view([('form1', Page1), ('form2', Page2),
                                     ('form3', Page3), ('form4', Page4)])),
    url(
        r'^wiz_other_template/$',
        CookieContactWizard.as_view([('form1', Page1), ('form2', Page2),
                                     ('form3', Page3), ('form4', Page4)],
                                    template_name='other_wizard_form.html')),
)
示例#2
0
from django.conf.urls.defaults import *
from django.contrib.formtools.wizard.tests.wizardtests.forms import (
    SessionContactWizard, CookieContactWizard, Page1, Page2, Page3, Page4)

urlpatterns = patterns('',
    url(r'^wiz_session/$', SessionContactWizard.as_view(
        [('form1', Page1),
         ('form2', Page2),
         ('form3', Page3),
         ('form4', Page4)])),
    url(r'^wiz_cookie/$', CookieContactWizard.as_view(
        [('form1', Page1),
         ('form2', Page2),
         ('form3', Page3),
         ('form4', Page4)])),
)
示例#3
0
文件: urls.py 项目: 101studio/django
from django.conf.urls.defaults import *
from django.contrib.formtools.wizard.tests.wizardtests.forms import (
    SessionContactWizard, CookieContactWizard, Page1, Page2, Page3, Page4)

urlpatterns = patterns('',
    url(r'^wiz_session/$', SessionContactWizard.as_view(
        [('form1', Page1),
         ('form2', Page2),
         ('form3', Page3),
         ('form4', Page4)])),
    url(r'^wiz_cookie/$', CookieContactWizard.as_view(
        [('form1', Page1),
         ('form2', Page2),
         ('form3', Page3),
         ('form4', Page4)])),
     url(r'^wiz_other_template/$', CookieContactWizard.as_view(
         [('form1', Page1),
          ('form2', Page2),
          ('form3', Page3),
          ('form4', Page4)],
          template_name='other_wizard_form.html')),
)