* ui_ux: => 0
* type: => Uncategorized
* severity: => Normal
* easy: => 0
Comment:
Replying to [comment:12 benjaoming]:
> Had the same issue... but if we read the documentation it says:
>
> '''In order to override one or more of them, first create an admin
directory in your project's templates directory. This can be any of the
directories you specified in TEMPLATE_DIRS.
>
> Within this admin directory, create sub-directories named after your
app. Within these app subdirectories create sub-directories named after
your models.'''
>
> ..and that solves it.
The annoying part about that is that we can't have a site-wide admin
override of change_list.html.
--
Ticket URL: <https://code.djangoproject.com/ticket/11115#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by benjaoming):
You can! Put change_list.html in your local templates/admin and *don't*
let it inherit from admin/change_list - instead just copy the whole file.
--
Ticket URL: <https://code.djangoproject.com/ticket/11115#comment:14>
Comment (by kmike):
See also: #15053, #8158
--
Ticket URL: <https://code.djangoproject.com/ticket/11115#comment:15>
Comment (by kevin@…):
Replying to [comment:14 benjaoming]:
> You can! Put change_list.html in your local templates/admin and *don't*
let it inherit from admin/change_list - instead just copy the whole file.
How about overriding just one block of change_list.html? Copying the file
doesn't seem to be the Django Way.
--
Ticket URL: <https://code.djangoproject.com/ticket/11115#comment:16>
Comment (by benjaoming):
No, but that's a workaround :) ...similarly you can make a symlink, call
it something else and inherit from that.
--
Ticket URL: <https://code.djangoproject.com/ticket/11115#comment:17>
Comment (by anonymous):
A better way that avoids copying, symlinks or using the full path, is to
use '..' to go up a directory or to and then back into a set of folders
specific to the django admin templates.
See here for an example
http://stackoverflow.com/a/23696160/1280629
--
Ticket URL: <https://code.djangoproject.com/ticket/11115#comment:18>