Sunday, November 27, 2011

TemplateSyntaxError, Could not parse the remainder

Hi

I'm following the django tutorial at Django by example in http://www.lightbird.net/dbe/todo_list.html#customizing-model-template

 In the first example, TodoList, Customizing Model Template part, I've copied the template to todo/item.

  {% block content %} <a href="{% url admin:todo_datetime_add %}">Add Todo items</a> 

Above is what I add in the change_list.html as the website content said.

I want to reuse the admin/change_list.html and add a link right after the block content line. But when I visit the url, I get the TemplateSyntaxError:

  Template error  In template /pathtomyworkspace/TodoList/TodoList/templates/admin/todo/item/change_list.html, error at line 58 Could not parse the remainder: ':todo_datetime_add' from 'admin:todo_datetime_add'
  I just wonder what should I do to use the 'admin:' namespaces in the template 
  python 2.7   django 1.3

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment