I'm looking at the templates in core/templates/admin and in base_site.html, it extends admin/base.html. I can't seem to find it anywhere. Does anyone know where it is?
On Tue, Nov 13, 2012 at 10:16 AM, John Munroe <mun...@gmail.com> wrote:
> Hi
> I'm looking at the templates in core/templates/admin and in
> base_site.html, it extends admin/base.html. I can't seem to find it
> anywhere. Does anyone know where it is?
> On Tue, Nov 13, 2012 at 10:16 AM, John Munroe <mun...@gmail.com<javascript:> > > wrote:
>> Hi
>> I'm looking at the templates in core/templates/admin and in >> base_site.html, it extends admin/base.html. I can't seem to find it >> anywhere. Does anyone know where it is?
Assuming that you have a standard setup, my understanding is that first it
will look in your project's templates directory. From their it will look
through the template directories of any app in INSTALLED_APPS, starting
with the first one. At any point that it finds a matching template it will
use it and stop looking. For a more thorough discussion of that look here:
https://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types,
specifically at the section about the app_directories loader.
On Tue, Nov 13, 2012 at 6:24 AM, John Munroe <mun...@gmail.com> wrote:
> I see. So how does django know that admin/base.html refers to the one in
> django.contrib.admin or grappelli-safe rather than one provided by
> Mezzanine?
> Thanks
> On Monday, November 12, 2012 11:20:43 PM UTC, Stephen McDonald wrote:
>> Mezzanine doesn't provide it - either django.contrib.admin or
>> grappelli-safe (if installed, which is by default) will provide it.
>> On Tue, Nov 13, 2012 at 10:16 AM, John Munroe <mun...@gmail.com> wrote:
>>> Hi
>>> I'm looking at the templates in core/templates/admin and in
>>> base_site.html, it extends admin/base.html. I can't seem to find it
>>> anywhere. Does anyone know where it is?