It looks like your problem is probably on line 2. The {%
comment_form_target %} tag is trying to do a reverse url lookup.
However, there aren't any matches in your url conf.

Hopefully, you just forgot to set up a url for post_comment.
Unfortunately, what that usually means for me is that there is an
error in one of my view functions (an error in any function will break
reverse).  See the caution box on this page:
http://docs.djangoproject.com/en/dev/topics/http/urls/#django.core.urlresolvers.reverse.

On Mar 2, 11:37 am, xankya <[email protected]> wrote:
> This works fine in my computer. but in remote server the following
> error is shown:
>
> Template error
>
> In template /opt/local/lib/python2.4/site-packages/django/contrib/
> comments/templates/comments/form.html, error at line 2
> Caught an exception while rendering: Reverse for '<function
> post_comment at 0x8c582cc>' with arguments '()' and keyword arguments
> '{}' not found.1        {% load comments i18n %}
> 2       <form action="{% comment_form_target %}" method="post">
> 3         {% for field in form %}
> 4           {% if field.is_hidden %}
> 5             {{ field }}
> 6           {% else %}
> 7             <p
> 8               {% if field.errors %} class="error"{% endif %}
> 9               {% ifequal field.name "honeypot" %} style="display:none;"{%
> endifequal %}>
> 10              {% if field.errors %}{{ field.errors }}{% endif %}
> 11              {{ field.label_tag }} {{ field }}
> 12            </p>
>
> In my computer i am using python 2.5.1, mod_python 3.3.1, django
> 1.0.2, MySQLdb 1.2.2.
> And in the remote server i am using python 2.4.4, mod_python 3.2.10,
> django 1.0.2, MySQL 1.2.2
--~--~---------~--~----~------------~-------~--~----~
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