I\'m doing something like:
{% extends \'base.html\' %}
{% url myapp.views.dashboard object as object_url %}
{% block sidebar %}
... {{ object_url }} ...
{% e
Well, this is kind of abusive of template inheritance, but you could use {{block.super}} to put object_url into your blocks.
In other words, in your mid-level template do:
{% block sidebar %}{{ object_url }}{% endblock %}
{% block content %}{{ object_url }}{% endblock %}
And then in your block templates use:
{% block sidebar %}
... {{ block.super }}...
{% endblock %}
It's not a great idea because it prevents you from putting anything besides {{ object_url }} into your block... but it works. Just don't tell anyone you got it from me!