Re: [Django] #11115: overriding change_list.html causes 'maximum recursion depth exceeded' exceptin

4 views
Skip to first unread message

Django

unread,
Jun 29, 2011, 2:14:51 PM6/29/11
to django-...@googlegroups.com
#11115: overriding change_list.html causes 'maximum recursion depth exceeded'
exceptin
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
margieroginski@… | Status: closed
Type: | Component: Template system
Uncategorized | Severity: Normal
Milestone: | Keywords:
Version: 1.1 | Has patch: 0
Resolution: invalid | Needs tests: 0
Triage Stage: | Easy pickings: 0
Unreviewed |
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Changes (by kevin@…):

* 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.

Django

unread,
Jun 30, 2011, 6:23:24 AM6/30/11
to django-...@googlegroups.com
#11115: overriding change_list.html causes 'maximum recursion depth exceeded'
exceptin
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
margieroginski@… | Status: closed
Type: | Component: Template system
Uncategorized | Severity: Normal
Milestone: | Keywords:
Version: 1.1 | Has patch: 0
Resolution: invalid | Needs tests: 0
Triage Stage: | Easy pickings: 0
Unreviewed |
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------

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>

Django

unread,
Jun 30, 2011, 10:24:18 AM6/30/11
to django-...@googlegroups.com
#11115: overriding change_list.html causes 'maximum recursion depth exceeded'
exceptin
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
margieroginski@… | Status: closed
Type: | Component: Template system
Uncategorized | Severity: Normal
Milestone: | Keywords:
Version: 1.1 | Has patch: 0
Resolution: invalid | Needs tests: 0
Triage Stage: | Easy pickings: 0
Unreviewed |
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------

Comment (by kmike):

See also: #15053, #8158

--
Ticket URL: <https://code.djangoproject.com/ticket/11115#comment:15>

Django

unread,
Jun 30, 2011, 11:03:34 AM6/30/11
to django-...@googlegroups.com
#11115: overriding change_list.html causes 'maximum recursion depth exceeded'
exceptin
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
margieroginski@… | Status: closed
Type: | Component: Template system
Uncategorized | Severity: Normal
Milestone: | Keywords:
Version: 1.1 | Has patch: 0
Resolution: invalid | Needs tests: 0
Triage Stage: | Easy pickings: 0
Unreviewed |
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------

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>

Django

unread,
Jun 30, 2011, 11:57:16 AM6/30/11
to django-...@googlegroups.com
#11115: overriding change_list.html causes 'maximum recursion depth exceeded'
exceptin
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
margieroginski@… | Status: closed
Type: | Component: Template system
Uncategorized | Severity: Normal
Milestone: | Keywords:
Version: 1.1 | Has patch: 0
Resolution: invalid | Needs tests: 0
Triage Stage: | Easy pickings: 0
Unreviewed |
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------

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>

Django

unread,
May 16, 2014, 10:07:35 AM5/16/14
to django-...@googlegroups.com
#11115: overriding change_list.html causes 'maximum recursion depth exceeded'
exceptin
----------------------------------+--------------------------------------
Reporter: margieroginski@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Template system | Version: 1.1
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages