In this case, you are using a 'named URL' in the Admin namespace. Here's two links that may help you learn a bit more about this topic.
https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns https://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces https://docs.djangoproject.com/en/dev/topics/http/urls/#topics-http-reversing-url-namespaces On Fri, Aug 17, 2012 at 6:23 PM, bruce <brucehar...@gmail.com> wrote: > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.