On 12/02/12 coded kid said:

> Below is the codes in my comments/form.html
> {% load comments i18n %}
> <form action="{% comment_form_target %}" method="post">{% csrf_token
> %}
>   {% if next %}<div><input type="hidden" name="next"
> value="{{ next }}" /></div>{% endif %}
>   {% for field in form %}
>     {% if field.is_hidden %}
>       <div>{{ field }}</div>
>     {% else %}
>       {% if field.errors %}{{ field.errors }}{% endif %}
>       <p
>         {% if field.errors %} class="error"{% endif %}
>         {% ifequal field.name "honeypot" %} style="display:none;"{%
> endifequal %}>
>         {{ field.label_tag }} {{ field }}
>       </p>
>     {% endif %}
>   {% endfor %}
>   <p class="submit">
>     <input type="submit" name="post" class="submit-post" value="{%
> trans "Post" %}" />
>     <input type="submit" name="preview" class="submit-preview"
> value="{% trans "Preview" %}" />
>   </p>
> </form>

You have conditionals on all output. If you're seeing a blank page, perhaps
those conditionals are all false. Put in some unconditional content and see if
it renders, and then start testing your conditionals.

Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to