Friday, August 6, 2010

Re: For tag fails in template

Part of my urls.py:
...
url(r'^project/(?P<project_id>\d+)/event/(?P<event_id>\d+)$',
views.event, name="event"),

url(r'^project/(?P<project_id>\d+)/event/edit/(?P<event_id>\d+)$',
views.edit_event, name="edit_event"),

url(r'^project/(?P<project_id>\d+)/event/new/$', views.edit_event,
name="new_event"),

...

I see, I need to write this:
{% url event project.pk event.pk %}

But why django shows me for tag, and not a url. I was pointed on a
wrong way)

Thanks btw.

--
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