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

2009-05-14 Thread Margie

Thanks for confirming it Nick.  I saw it also on 1.0.2. I went ahead
and created a ticket, it's ticket 5.

Margie

On May 13, 1:32 pm, NickPresta  wrote:
> I can confirm this happens with 1.0.2 Final.
>
> On May 7, 2:44 pm, Margie  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...
>
> > 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
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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

2009-05-13 Thread NickPresta

I can confirm this happens with 1.0.2 Final.

On May 7, 2:44 pm, Margie  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...
>
> 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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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

2009-05-07 Thread Margie

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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---