Re: Overriding admin templates

2008-11-27 Thread Lars Stavholm
bfrederi wrote: > It turns out I am having the same issue. I just added on batchadmin > and I can't seem to override templates across the entire project (I > wanted to add some JQuery to filters.html). How did you solve your > problem? Apologies, I don't clearly remember, but I just checked my se

Re: Overriding admin templates

2008-11-26 Thread bfrederi
It turns out I am having the same issue. I just added on batchadmin and I can't seem to override templates across the entire project (I wanted to add some JQuery to filters.html). How did you solve your problem? On Nov 3, 5:02 am, Lars Stavholm <[EMAIL PROTECTED]> wrote: > Lars Stavholm wrote: >

Re: Overriding admin templates

2008-11-03 Thread Lars Stavholm
Lars Stavholm wrote: > Karen Tracey wrote: >> On Sat, Nov 1, 2008 at 5:54 PM, Lars Stavholm <[EMAIL PROTECTED] >> > wrote: >> >> Low Kian Seong wrote: >> > http://www.djangobook.com/en/1.0/chapter17/ >> >> Yes, thank you, that's it. >> >> It worked nicely

Re: Overriding admin templates

2008-11-03 Thread Lars Stavholm
Karen Tracey wrote: > On Sat, Nov 1, 2008 at 5:54 PM, Lars Stavholm <[EMAIL PROTECTED] > > wrote: > > > Low Kian Seong wrote: > > http://www.djangobook.com/en/1.0/chapter17/ > > Yes, thank you, that's it. > > It worked nicely for the change_form.html e

Re: Overriding admin templates

2008-11-01 Thread Karen Tracey
On Sat, Nov 1, 2008 at 5:54 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > Low Kian Seong wrote: > > http://www.djangobook.com/en/1.0/chapter17/ > > Yes, thank you, that's it. > > It worked nicely for the change_form.html example given in that > chapter. However, for the change_list.html it stil

Re: Overriding admin templates

2008-11-01 Thread Lars Stavholm
Low Kian Seong wrote: > http://www.djangobook.com/en/1.0/chapter17/ Yes, thank you, that's it. It worked nicely for the change_form.html example given in that chapter. However, for the change_list.html it still doesn't work. Seems to me I've hit a django bug. Anyone else? /L > On Sat, Nov 1, 20

Re: Overriding admin templates

2008-11-01 Thread Low Kian Seong
http://www.djangobook.com/en/1.0/chapter17/ On Sat, Nov 1, 2008 at 6:20 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > Low Kian Seong wrote: >> You are supposed to put the admin template you want to override in >> your own template directory definition in settings.py >> >> So, if you defined it

Re: Overriding admin templates

2008-11-01 Thread Lars Stavholm
Low Kian Seong wrote: > You are supposed to put the admin template you want to override in > your own template directory definition in settings.py > > So, if you defined it as /home/stava/ name>/template/admin/change_list.html Huh? /L > On Sat, Nov 1, 2008 at 5:32 PM, Lars Stavholm <[EMAIL PROT

Re: Overriding admin templates

2008-11-01 Thread Low Kian Seong
You are supposed to put the admin template you want to override in your own template directory definition in settings.py So, if you defined it as /home/stava//template/admin/change_list.html On Sat, Nov 1, 2008 at 5:32 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > I'd like to override part

Overriding admin templates

2008-11-01 Thread Lars Stavholm
I'd like to override part of an admin change_list template. Reading the documentation, my understanding is that I can place a template in a certain place in the templates directory hierarchy, and django will look for it and use it, i.e.: templates/admin/build/job/change_list.html ...where "buil

Re: Overriding Admin templates on a per-app and per-model basis

2007-09-11 Thread AndyB
Mystery solved. It does work as advertised but my testing was assuming that all admin pages would be affected rather than just change_form.html etc. So as it stands there is no way to override the admin index page on a per-app basis using this mechanism. Not a problem for me at the moment as the

Re: Overriding Admin templates on a per-app and per-model basis

2007-09-11 Thread AndyB
I just tried this against trunk and got the same results. >From a quick perusal of the admin code I can't see any special code for template loading. Where is this functionality supposed to reside? --~--~-~--~~~---~--~~ You received this message because you are su

Overriding Admin templates on a per-app and per-model basis

2007-09-10 Thread AndyB
I was rather pleased to read that the above was possible according to the Django book: http://www.djangobook.com/en/beta/chapter18/ (scroll down to the section called 'Customizing admin templates') I've already been overriding the admin templates globally by putting custom templates in a folder n