no, the comments system is new ,not upgrading  from the old style.

On 9月4日, 上午10时18分, Joshua Jonah <[EMAIL PROTECTED]> wrote:
> Did you upgrade the comments system from the old style?
>
> looks like a reverse issue.
>
> nonightwrote:
> > I have add (r'^comments/', include('django.contrib.comments.urls')) in
> > the urls.py
>
> > the codes in the template:
> > {% load comments %}
> > {% render_comment_form for user %}
>
> > the error was :
> > Caught an exception while rendering: No module named urls
>
> > Original Traceback (most recent call last):
> >   File "/usr/local/lib/python2.4/site-packages/django/template/
> > debug.py", line 71, in render_node
> >     result = node.render(context)
> >   File "/usr/local/lib/python2.4/site-packages/django/template/
> > __init__.py", line 888, in render
> >     return func(*resolved_vars)
> >   File "/usr/local/lib/python2.4/site-packages/django/contrib/comments/
> > templatetags/comments.py", line 246, in comment_form_target
> >     return comments.get_form_target()
> >   File "/usr/local/lib/python2.4/site-packages/django/contrib/comments/
> > __init__.py", line 50, in get_form_target
> >     return
> > urlresolvers.reverse("django.contrib.comments.views.comments.post_comment")
> >   File "/usr/local/lib/python2.4/site-packages/django/core/
> > urlresolvers.py", line 251, in reverse
> >     return iri_to_uri(u'%s%s' % (prefix,
> > get_resolver(urlconf).reverse(viewname,
> >   File "/usr/local/lib/python2.4/site-packages/django/core/
> > urlresolvers.py", line 226, in reverse
> >     possibilities, pattern = self.reverse_dict.get(lookup_view, [(),
> > ()])
> >   File "/usr/local/lib/python2.4/site-packages/django/core/
> > urlresolvers.py", line 160, in _get_reverse_dict
> >     for name, (matches, pat) in pattern.reverse_dict.iteritems():
> >   File "/usr/local/lib/python2.4/site-packages/django/core/
> > urlresolvers.py", line 153, in _get_reverse_dict
> >     if not self._reverse_dict and hasattr(self.urlconf_module,
> > 'urlpatterns'):
> >   File "/usr/local/lib/python2.4/site-packages/django/core/
> > urlresolvers.py", line 197, in _get_urlconf_module
> >     self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
> > ImportError: No module named urls
> > Template error
>
> > In template /usr/local/lib/python2.4/site-packages/django/contrib/
> > comments/templates/comments/form.html, error at line 2
> > Caught an exception while rendering: No module named urls
> > 1  {% load comments %}
> > 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>
>
> > I don't know how to do ,who can help me ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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