Cannot Extend Django 1.2.1 Admin Template

Posted by jcady on Stack Overflow See other posts from Stack Overflow or by jcady
Published on 2010-06-07T21:15:55Z Indexed on 2010/06/07 21:22 UTC
Read the original article Hit count: 377

Filed under:
|

I am attempting to override/extend the header for the Django admin in version 1.2.1. However when I try to extend the admin template and simply change what I need documented here: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-vs-replacing-an-admin-template), I run into a recursion problem.

I have an index.html file in my project's templates/admin/ directory that starts with

{% extends "admin/index.html" %}

But it seems that this is referencing the local index file (a.k.a. itself) rather than the default Django copy. I want to extend the default Django template and simply change a few blocks. When I try this file, I get a recursion depth error.

How can I extend parts of the admin? Thanks.

© Stack Overflow or respective owner

Related posts about django

Related posts about django-admin