Hi and all,
On Monday 24 August 2015 23:37:57 Collin Anderson wrote:
> On Mon, Aug 24, 2015 at 2:25 AM, Amin Jun
>
> wrote:
> > I liked his suggestion, I don't know if I'm using template tags
> > correctly, but I'm writing a template tag {% load_comment
> > comment_manager %} , "load_comment" re
Hi Jun,
I think this might do what you want:
{% block js %}{{ block.super }} {% endblock %}
But, like the original poster said, please use django-users list for things
like this.
Thanks,
Collin
On Mon, Aug 24, 2015 at 2:25 AM, Amin Jun
wrote:
> I liked his suggestion, I don't know if I'm u
I liked his suggestion, I don't know if I'm using template tags correctly,
but I'm writing a template tag {% load_comment comment_manager %} ,
"load_comment" renders a file "comments.html" and also needs a file
"comment.js" and in any page that has comments, I have to add "comment.js"
manually
This should solve my problems, therefore my question is no longer valid.
I missed that in the documentation.
Probably I should ask at django-users first.
Although
{% extends "admin/index.html" after "blockname" %}
would be a nice shorthand.
or
{% from "admin/index.html" import "blockname" %
On 20/05/11 17:14, Mateusz Harasymczuk wrote:
> I have recently fought with extending templates.
> Plenty of my usecases are almost the same: append some html before or
> after admin templates blocks.
{{ block.super }} sounds like what you want. If not, please let us know why.
Regards,
Luke
--
I have recently fought with extending templates.
Plenty of my usecases are almost the same: append some html before or after
admin templates blocks.
To do so, I have to take template, copy the contents and save modified file
as a html in my templates dir.
What happens if django contrib.admin pa