Hi guys, please help me out with django-comments form. I added :
'django.contrib.comments', to INSTALLED APPS
(r'^comments/', include('django.contrib.comments.urls')), to urls.py
and I copied the default templates from
django.contrib.comments.templates.comments to my app templates
directory.
After doing that, I visit localhost:8000/comments/posts and the page
is not showing me any comments form, it just showing me a white blank
page. What I'm I doing wrong?
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>
Hope to hear from you soon.
--
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.