Re: templates block prepend and append

2015-08-24 Thread Shai Berger
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

Re: templates block prepend and append

2015-08-24 Thread Collin Anderson
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

Re: templates block prepend and append

2015-08-24 Thread Amin Jun
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

Re: templates block prepend and append

2011-05-20 Thread Mateusz Harasymczuk
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" %

Re: templates block prepend and append

2011-05-20 Thread Luke Plant
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 --

templates block prepend and append

2011-05-20 Thread Mateusz Harasymczuk
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