Monday, February 8, 2016

Re: Django formtools wizard produces blank page (No error returned)

If I understand well, you mean that my form templates have to extend the main wizard template. Is that correct?

In previous versions this was achieved by writing template_name = 'main_wizard_template.html' into the subclass of WizardView. Am I wrong?

So, with {% extends 'registration/test_wizard.html' %} in registration/test_step1.html and registration/test_step2.html it should work.

I will try tonight.
Thanks.



On 8 February 2016 at 10:06, James Schneider <jrschneider83@gmail.com> wrote:


On Feb 7, 2016 11:46 AM, "Martín Torre Castro" <martin.torre.castro@gmail.com> wrote:
>
> James or anyone, the wizard doesn't load the main template for the wizard, just the first step template form. Can you guess why?
>

The templates you included in your OP didn't have {% extends %} or {% block %} tags in them. I asked about them and you mentioned those are the exact templates you're using. Make sure your step templates have the correct block references in them, otherwise your big parent template will never get loaded. Each step of the form/view renders the entire page, not just the section where the form is at.

-James

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/mAi_fB_MTwo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXVwqfi%2BN62QsPZvUXRWyV0vg5%2BjhOe2Cp9WzCbXk%2BCoQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKijOkyqt%2BTnh89TcP11OU0LZL%2BOz_iqWUWQUDk3iEBLgyqqNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment