How can I get Django templates to generate links to anchors that are
*local* to the document?
In a static HTML page, I have a table of contents with links to
internal sections within the same page:
<a href="#1">Section1</a>
<a href="#2">Section2</a>
These link to sections that that look like this:
<td id="1" class="section"> 111 </td>
<td id="2" class="section"> 222 </td>
Converting the above into a template I have:
{% for row in content.rows %}
<a href="#{{
row.id}}">{{ row.label }}</a>
but....when the template loads it creates output that looks like:
<a href="
http://localhost:8000/doc/#1">
That URL above now gets processed by URL conf...
I have tried various things but I cannot get the Django temlplate to
generate simply:
<a href="#1"> so that it will navigate to a section down the page....
thanks in advance for any advice.
-Peter