views:

17

answers:

0

I am trying to override a template that has a block that loads and displays comments.

Like this... I have the Comments in the installed apps here.

base.html

<html>
<body>
{% block show_comments %}
...Do some stuff to show comments.
{% endblock show_comments %}
</body>
</html>

Now, I wanna extend this "base.html" template in another project that doesn't have Comments in installed apps.

some-template.html

{% extends "base.html" %}
{% block show_comments %}
    ...Dont wanna see Comments here
{% endblock show_comments %}

I can't override the template in this case. Is there any way around? Please help...

related questions