Friday, August 17, 2012

Re: [old question]NoReverseMatch.. I am sorry.

Tears!!!!!!!!!!!!!!!!!!!!!!!!
thanks!!!!!

But I am confused.
For example,
the following code needs to add single quote.
{% block content %}  <a href="{% url 'admin:todo_datetime_add' %}">Add Todo items</a>

Is there a link to give me detailed description?
I want to learn it and never get stuck again.

Thanks!!



On Friday, August 17, 2012 5:37:13 PM UTC-4, Tomas Neme wrote:
either remove the quotes from {% url 'blog.views.add_comment' %} (so it's {% url blog.views.add_comment %}) or {% load url from future %}

Loading from future is the better option, I think.

and for future reference:
Reverse for ''blog.views.add_comment'' with arguments '(1L,)' and keyword arguments '{}' not found.
notice how there's two single quotes there, not a double quote? that's your clue, right there

--
"The whole of Japan is pure invention. There is no such country, there are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny 
(")_(") to help him gain world domination.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/QqYvLl3VNisJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate