overriding change_list.html causes 'maximum recursion depth exceeded' exception

25 views
Skip to first unread message

Margie

unread,
May 7, 2009, 2:44:18 PM5/7/09
to Django users
I am trying to override the admin sites' change_list.html, following
the example at:

http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates

If I create templates/admin/myapp/change_list.html and just put this
in it (and nothing else):

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

I get

Request Method: GET
Request URL: http://172.16.84.5:8042/admin/taskmanager/task/
Exception Type: TemplateSyntaxError
Exception Value:

Caught an exception while rendering: maximum recursion depth exceeded
in cmp

Original Traceback (most recent call last):
File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
packages/django/template/loader_tags.py", line 71, in render
compiled_parent = self.get_parent(context)
File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
packages/django/template/loader_tags.py", line 64, in get_parent
source, origin = find_template_source(parent, self.template_dirs)
File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
packages/django/template/loader.py", line 70, in find_template_source
source, display_name = loader(name, dirs)
File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
packages/django/template/loaders/filesystem.py", line 31, in
load_template_source
for filepath in get_template_sources(template_name,
template_dirs):
File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
packages/django/template/loaders/filesystem.py", line 16, in
get_template_sources
template_dirs = settings.TEMPLATE_DIRS
File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site-
packages/django/utils/functional.py", line 270, in __getattr__
if name == "__members__":
RuntimeError: maximum recursion depth exceeded in cmp

Exception Location: /tools/aticad/1.0/external/python-2.5.1/lib/
python2.5/site-packages/django/template/debug.py in render_node, line
81

I'm using the beta:
>>> django.VERSION
(1, 1, 0, 'beta', 1)

Is this something I should post as a real bug? If so, could someone
point me at the appropriate site for posting a bug?

Margie

NickPresta

unread,
May 13, 2009, 4:32:54 PM5/13/09
to Django users
I can confirm this happens with 1.0.2 Final.

On May 7, 2:44 pm, Margie <margierogin...@yahoo.com> wrote:
> I am trying to override the admin sites' change_list.html, following
> the example at:
>
> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-ad...

Margie

unread,
May 14, 2009, 5:14:57 AM5/14/09
to Django users
Thanks for confirming it Nick. I saw it also on 1.0.2. I went ahead
and created a ticket, it's ticket 11115.

Margie
Reply all
Reply to author
Forward
0 new messages