I'm working through the Coltrane weblog tutorial and trying to implement
semi-hard-coded breadcrumbs. It seems reverse doesn't like what I've done.
This is the template inheritance chain ...
1. Salient parts of underlying template ...
{% block breadcrumbs %}{{ block.super }}
› <a href="/weblog/">Mike's Blog</a>
{% endblock %}
2. A separate template coltrane/entry_archive.html inherits the above
breadcrumbs properly with block.super. It contains a link to a blog
entry which successfully brings up a page containing the full entry via
a generic view and coltrane/entry_detail.html but ...
3. I have a problem in breadcrumbs in coltrane/entry_detail.html ...
{% block breadcrumbs %}{{ block.super }}
› <a href "{% url coltrane_entry_archive_index %}">Entries</a>
› Entry detail
{% endblock %}
... and here the url tag fetches the wrong URL. Instead of rendering
entry_archive.html as I expected, it renders entry_detail.html with
exactly the same detail as the link in 2 above.
I have tried closing down the dev server and browser and starting again
but the same thing happens.
My urls.py and /urls/*.py files are as documented in the book.
Where have I gone astray?
Thanks
Mike
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@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.