Sunday, February 7, 2016

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

James or anyone, the wizard doesn't load the main template for the wizard, just the first step template form. Can you guess why?

On 7 February 2016 at 02:05, Martín Torre Castro <martin.torre.castro@gmail.com> wrote:
Solved. Silly error. The name for the template function in the wizard should be get_template_names and it was get_templates_name.

Thank you anyway!!!

On 2 February 2016 at 10:17, Martín Torre Castro <martin.torre.castro@gmail.com> wrote:
Yes, those two templates are both entirely the code posted.

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


On Tue, Feb 2, 2016 at 12:26 AM, Martín Torre Castro <martin.torre.castro@gmail.com> wrote:
I have DEBUG = True in my settings. When making the request the 200 http code appears. The 500 "Internal server error" code only appears when trying to obtain info through the django-debug-toolbar


In that case you should be seeing something in your web server logs regarding the internal server error. I'd be quite surprised if the debug toolbar was the cause of the error. It must be something being set somewhere that it isn't expecting.


I went back through your code posting, and I was curious about something:

registration/test_step1.html

<h1>Two fields form</h1>
<input id="first_field" name="first_field">
<input id="second_field" name="second_field">

registration/test_step2.html

<h1>Message form</h1>
<input id="message" name="message">

Are these your actual templates? I originally made an assumption that you had intentionally omitted the {% block %} and {% extends %} tags, but now I'm wondering if these are the actual templates and what you are receiving when you see a blank page is actually just the raw HTML that you posted above (check the source of the blank page)?

Just a thought. 

-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%2BciXf7XHLEQeT_Onqx_Zq%3DKBmOTofXayWN4SoaxtHMhshvA%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/CAKijOkwi6RxyRwFfkXU66Xj6MmC5ApxJ%2BC2%2B9MpR1WA%3D6eFycQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment