﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36716	Debugging can get stuck in an infinite loop if a setting is contained in itself	Willem Van Onsem		"Django can get stuck in an infinite loop when cleansing settings.

Indeed, imagine we have a setting:

{{{
MY_SETTING = []
MY_SETTING.append(MY_SETTING)
}}}

If we now visit a page that raises an error, and Django starts the debugging process, it will get stuck in infinite recursion.

while it might look a bit odd that settings can contain themself, it renders the server unresponsive when an error happens and we run it in debug.

We can for cleansing add a list of visited `id(..)`s of the settings, and if visited a second time, block the rendering.

"	Cleanup/optimization	closed	Core (Other)	5.2	Normal	wontfix			Unreviewed	0	0	0	0	0	0
